Skip to content

Commit 2bbee1e

Browse files
committed
Not these ones
1 parent f908c28 commit 2bbee1e

File tree

9 files changed

+52
-52
lines changed

9 files changed

+52
-52
lines changed

packages/diagram_capture/example/linux/my_application.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ G_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICATION,
1919
*/
2020
MyApplication *my_application_new();
2121

22-
#endif // FLUTTER_MY_APPLICATION_H_
22+
#endif // FLUTTER_MY_APPLICATION_H_

packages/diagram_generator/linux/my_application.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ G_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICATION,
1919
*/
2020
MyApplication *my_application_new();
2121

22-
#endif // FLUTTER_MY_APPLICATION_H_
22+
#endif // FLUTTER_MY_APPLICATION_H_

packages/diagram_viewer/linux/my_application.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ G_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICATION,
1919
*/
2020
MyApplication *my_application_new();
2121

22-
#endif // FLUTTER_MY_APPLICATION_H_
22+
#endif // FLUTTER_MY_APPLICATION_H_

packages/diagram_viewer/windows/runner/flutter_window.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ FlutterWindow::MessageHandler(HWND hwnd, UINT const message,
6464
}
6565

6666
switch (message) {
67-
case WM_FONTCHANGE:
68-
flutter_controller_->engine()->ReloadSystemFonts();
69-
break;
67+
case WM_FONTCHANGE:
68+
flutter_controller_->engine()->ReloadSystemFonts();
69+
break;
7070
}
7171

7272
return Win32Window::MessageHandler(hwnd, message, wparam, lparam);

packages/diagram_viewer/windows/runner/flutter_window.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,24 @@
1414

1515
// A window that does nothing but host a Flutter view.
1616
class FlutterWindow : public Win32Window {
17-
public:
17+
public:
1818
// Creates a new FlutterWindow hosting a Flutter view running |project|.
1919
explicit FlutterWindow(const flutter::DartProject &project);
2020
virtual ~FlutterWindow();
2121

22-
protected:
22+
protected:
2323
// Win32Window:
2424
bool OnCreate() override;
2525
void OnDestroy() override;
2626
LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam,
2727
LPARAM const lparam) noexcept override;
2828

29-
private:
29+
private:
3030
// The project to run.
3131
flutter::DartProject project_;
3232

3333
// The Flutter instance hosted by this window.
3434
std::unique_ptr<flutter::FlutterViewController> flutter_controller_;
3535
};
3636

37-
#endif // RUNNER_FLUTTER_WINDOW_H_
37+
#endif // RUNNER_FLUTTER_WINDOW_H_

packages/diagram_viewer/windows/runner/utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ std::string Utf8FromUtf16(const wchar_t *utf16_string) {
5252
unsigned int target_length =
5353
::WideCharToMultiByte(CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, -1,
5454
nullptr, 0, nullptr, nullptr) -
55-
1; // remove the trailing null character
55+
1; // remove the trailing null character
5656
int input_length = (int)wcslen(utf16_string);
5757
std::string utf8_string;
5858
if (target_length == 0 || target_length > utf8_string.max_size()) {

packages/diagram_viewer/windows/runner/utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ std::string Utf8FromUtf16(const wchar_t *utf16_string);
2020
// encoded in UTF-8. Returns an empty std::vector<std::string> on failure.
2121
std::vector<std::string> GetCommandLineArguments();
2222

23-
#endif // RUNNER_UTILS_H_
23+
#endif // RUNNER_UTILS_H_

packages/diagram_viewer/windows/runner/win32_window.cpp

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ void EnableFullDpiSupportIfAvailable(HWND hwnd) {
5959
FreeLibrary(user32_module);
6060
}
6161

62-
} // namespace
62+
} // namespace
6363

6464
// Manages the Win32Window's window class registration.
6565
class WindowClassRegistrar {
66-
public:
66+
public:
6767
~WindowClassRegistrar() = default;
6868

6969
// Returns the singleton registrar instance.
@@ -82,7 +82,7 @@ class WindowClassRegistrar {
8282
// instances of the window.
8383
void UnregisterWindowClass();
8484

85-
private:
85+
private:
8686
WindowClassRegistrar() = default;
8787

8888
static WindowClassRegistrar *instance_;
@@ -177,43 +177,43 @@ LRESULT
177177
Win32Window::MessageHandler(HWND hwnd, UINT const message, WPARAM const wparam,
178178
LPARAM const lparam) noexcept {
179179
switch (message) {
180-
case WM_DESTROY:
181-
window_handle_ = nullptr;
182-
Destroy();
183-
if (quit_on_close_) {
184-
PostQuitMessage(0);
185-
}
186-
return 0;
187-
188-
case WM_DPICHANGED: {
189-
auto newRectSize = reinterpret_cast<RECT *>(lparam);
190-
LONG newWidth = newRectSize->right - newRectSize->left;
191-
LONG newHeight = newRectSize->bottom - newRectSize->top;
192-
193-
SetWindowPos(hwnd, nullptr, newRectSize->left, newRectSize->top, newWidth,
194-
newHeight, SWP_NOZORDER | SWP_NOACTIVATE);
195-
196-
return 0;
180+
case WM_DESTROY:
181+
window_handle_ = nullptr;
182+
Destroy();
183+
if (quit_on_close_) {
184+
PostQuitMessage(0);
197185
}
198-
case WM_SIZE: {
199-
RECT rect = GetClientArea();
200-
if (child_content_ != nullptr) {
201-
// Size and position the child window.
202-
MoveWindow(child_content_, rect.left, rect.top, rect.right - rect.left,
203-
rect.bottom - rect.top, TRUE);
204-
}
205-
return 0;
186+
return 0;
187+
188+
case WM_DPICHANGED: {
189+
auto newRectSize = reinterpret_cast<RECT *>(lparam);
190+
LONG newWidth = newRectSize->right - newRectSize->left;
191+
LONG newHeight = newRectSize->bottom - newRectSize->top;
192+
193+
SetWindowPos(hwnd, nullptr, newRectSize->left, newRectSize->top, newWidth,
194+
newHeight, SWP_NOZORDER | SWP_NOACTIVATE);
195+
196+
return 0;
197+
}
198+
case WM_SIZE: {
199+
RECT rect = GetClientArea();
200+
if (child_content_ != nullptr) {
201+
// Size and position the child window.
202+
MoveWindow(child_content_, rect.left, rect.top, rect.right - rect.left,
203+
rect.bottom - rect.top, TRUE);
206204
}
205+
return 0;
206+
}
207207

208-
case WM_ACTIVATE:
209-
if (child_content_ != nullptr) {
210-
SetFocus(child_content_);
211-
}
212-
return 0;
208+
case WM_ACTIVATE:
209+
if (child_content_ != nullptr) {
210+
SetFocus(child_content_);
211+
}
212+
return 0;
213213

214-
case WM_DWMCOLORIZATIONCOLORCHANGED:
215-
UpdateTheme(hwnd);
216-
return 0;
214+
case WM_DWMCOLORIZATIONCOLORCHANGED:
215+
UpdateTheme(hwnd);
216+
return 0;
217217
}
218218

219219
return DefWindowProc(window_handle_, message, wparam, lparam);

packages/diagram_viewer/windows/runner/win32_window.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// inherited from by classes that wish to specialize with custom
1616
// rendering and input handling
1717
class Win32Window {
18-
public:
18+
public:
1919
struct Point {
2020
unsigned int x;
2121
unsigned int y;
@@ -59,7 +59,7 @@ class Win32Window {
5959
// Return a RECT representing the bounds of the current client area.
6060
RECT GetClientArea();
6161

62-
protected:
62+
protected:
6363
// Processes and route salient window messages for mouse handling,
6464
// size change and DPI. Delegates handling of these to member overloads that
6565
// inheriting classes can handle.
@@ -74,7 +74,7 @@ class Win32Window {
7474
// Called when Destroy is called.
7575
virtual void OnDestroy();
7676

77-
private:
77+
private:
7878
friend class WindowClassRegistrar;
7979

8080
// OS callback called by message pump. Handles the WM_NCCREATE message which
@@ -101,4 +101,4 @@ class Win32Window {
101101
HWND child_content_ = nullptr;
102102
};
103103

104-
#endif // RUNNER_WIN32_WINDOW_H_
104+
#endif // RUNNER_WIN32_WINDOW_H_

0 commit comments

Comments
 (0)