Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 60a46c9

Browse files
committed
Rename
1 parent da9be30 commit 60a46c9

11 files changed

+15
-15
lines changed

shell/platform/windows/BUILD.gn

+5-5
Original file line numberDiff line numberDiff line change
@@ -41,23 +41,23 @@ source_set("flutter_windows_source") {
4141
sources = [
4242
"angle_surface_manager.cc",
4343
"angle_surface_manager.h",
44-
"dpi_utils.cc",
45-
"dpi_utils.h",
4644
"flutter_windows.cc",
4745
"flutter_windows_view.cc",
4846
"flutter_windows_view.h",
4947
"key_event_handler.cc",
5048
"key_event_handler.h",
5149
"keyboard_hook_handler.h",
52-
"platform_handler.cc",
53-
"platform_handler.h",
5450
"string_conversion.cc",
5551
"string_conversion.h",
5652
"text_input_plugin.cc",
5753
"text_input_plugin.h",
5854
"window_binding_handler.h",
55+
"win32_dpi_utils.cc",
56+
"win32_dpi_utils.h",
5957
"win32_flutter_window.cc",
6058
"win32_flutter_window.h",
59+
"win32_platform_handler.cc",
60+
"win32_platform_handler.h",
6161
"win32_task_runner.cc",
6262
"win32_task_runner.h",
6363
"win32_window.cc",
@@ -113,12 +113,12 @@ executable("flutter_windows_unittests") {
113113
testonly = true
114114

115115
sources = [
116-
"dpi_utils_unittests.cc",
117116
"string_conversion_unittests.cc",
118117
"testing/win32_flutter_window_test.cc",
119118
"testing/win32_flutter_window_test.h",
120119
"testing/win32_window_test.cc",
121120
"testing/win32_window_test.h",
121+
"win32_dpi_utils_unittests.cc",
122122
"win32_flutter_window_unittests.cc",
123123
"win32_window_unittests.cc",
124124
]

shell/platform/windows/flutter_windows.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
#include "flutter/shell/platform/common/cpp/incoming_message_dispatcher.h"
2020
#include "flutter/shell/platform/common/cpp/path_utils.h"
2121
#include "flutter/shell/platform/embedder/embedder.h"
22-
#include "flutter/shell/platform/windows/dpi_utils.h"
2322
#include "flutter/shell/platform/windows/flutter_windows_view.h"
2423
#include "flutter/shell/platform/windows/key_event_handler.h"
2524
#include "flutter/shell/platform/windows/keyboard_hook_handler.h"
26-
#include "flutter/shell/platform/windows/platform_handler.h"
2725
#include "flutter/shell/platform/windows/text_input_plugin.h"
26+
#include "flutter/shell/platform/windows/win32_dpi_utils.h"
2827
#include "flutter/shell/platform/windows/win32_flutter_window.h"
28+
#include "flutter/shell/platform/windows/win32_platform_handler.h"
2929
#include "flutter/shell/platform/windows/win32_task_runner.h"
3030
#include "flutter/shell/platform/windows/window_binding_handler.h"
3131
#include "flutter/shell/platform/windows/window_state.h"

shell/platform/windows/flutter_windows_view.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
#include "flutter/shell/platform/windows/angle_surface_manager.h"
1717
#include "flutter/shell/platform/windows/key_event_handler.h"
1818
#include "flutter/shell/platform/windows/keyboard_hook_handler.h"
19-
#include "flutter/shell/platform/windows/platform_handler.h"
2019
#include "flutter/shell/platform/windows/public/flutter_windows.h"
2120
#include "flutter/shell/platform/windows/text_input_plugin.h"
2221
#include "flutter/shell/platform/windows/window_binding_handler.h"
2322
#include "flutter/shell/platform/windows/window_state.h"
23+
#include "flutter/shell/platform/windows/win32_platform_handler.h"
2424

2525
namespace flutter {
2626

shell/platform/windows/dpi_utils.cc renamed to shell/platform/windows/win32_dpi_utils.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "dpi_utils.h"
1+
#include "win32_dpi_utils.h"
22

33
namespace flutter {
44

shell/platform/windows/dpi_utils.h renamed to shell/platform/windows/win32_dpi_utils.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace flutter {
1313
/// backward compatible down to Windows Vista. If |hwnd| is nullptr, returns the
1414
/// DPI for the primary monitor. If Per-Monitor DPI awareness is not available,
1515
/// returns the system's DPI.
16-
UINT GetDpiForHWND(HWND hwnd);
16+
UINT GetDpiForHWND(::HWND hwnd);
1717

1818
/// Returns the DPI of a given monitor. Defaults to 96 if the API is not
1919
/// available.

shell/platform/windows/dpi_utils_unittests.cc renamed to shell/platform/windows/win32_dpi_utils_unittests.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <windows.h>
22

3-
#include "flutter/shell/platform/windows/dpi_utils.h"
3+
#include "flutter/shell/platform/windows/win32_dpi_utils.h"
44
#include "gtest/gtest.h"
55

66
namespace flutter {

shell/platform/windows/win32_flutter_window_unittests.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ TEST(Win32FlutterWindowTest, CreateDestroy) {
1111

1212
TEST(Win32FlutterWindowTest, CanFontChange) {
1313
Win32FlutterWindowTest window(800, 600);
14-
HWND hwnd = window.GetWindowHandle();
14+
::HWND hwnd = window.GetWindowHandle();
1515
LRESULT result = SendMessage(hwnd, WM_FONTCHANGE, NULL, NULL);
1616
ASSERT_EQ(result, 0);
1717
ASSERT_TRUE(window.OnFontChangeWasCalled());

shell/platform/windows/platform_handler.cc renamed to shell/platform/windows/win32_platform_handler.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
#include "flutter/shell/platform/windows/platform_handler.h"
5+
#include "flutter/shell/platform/windows/win32_platform_handler.h"
66

77
#include <windows.h>
88

shell/platform/windows/win32_window.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
#include "flutter/shell/platform/windows/win32_window.h"
66

7-
#include "dpi_utils.h"
7+
#include "win32_dpi_utils.h"
88

99
namespace flutter {
1010

shell/platform/windows/window_state.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
#include "flutter/shell/platform/embedder/embedder.h"
1111
#include "flutter/shell/platform/windows/key_event_handler.h"
1212
#include "flutter/shell/platform/windows/keyboard_hook_handler.h"
13-
#include "flutter/shell/platform/windows/platform_handler.h"
1413
#include "flutter/shell/platform/windows/text_input_plugin.h"
14+
#include "flutter/shell/platform/windows/win32_platform_handler.h"
1515
#include "flutter/shell/platform/windows/win32_task_runner.h"
1616

1717
namespace flutter {

0 commit comments

Comments
 (0)