Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Side by Side Diff: ui/platform_window/win/win_window.h

Issue 623293004: replace OVERRIDE and FINAL with override and final in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/ozone/run_all_unittests.cc ('k') | ui/platform_window/x11/x11_window.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_PLATFORM_WINDOW_WIN_WIN_WINDOW_H_ 5 #ifndef UI_PLATFORM_WINDOW_WIN_WIN_WINDOW_H_
6 #define UI_PLATFORM_WINDOW_WIN_WIN_WINDOW_H_ 6 #define UI_PLATFORM_WINDOW_WIN_WIN_WINDOW_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ui/gfx/win/window_impl.h" 9 #include "ui/gfx/win/window_impl.h"
10 #include "ui/platform_window/platform_window.h" 10 #include "ui/platform_window/platform_window.h"
11 #include "ui/platform_window/win/win_window_export.h" 11 #include "ui/platform_window/win/win_window_export.h"
12 12
13 namespace ui { 13 namespace ui {
14 14
15 class WIN_WINDOW_EXPORT WinWindow : public NON_EXPORTED_BASE(PlatformWindow), 15 class WIN_WINDOW_EXPORT WinWindow : public NON_EXPORTED_BASE(PlatformWindow),
16 public gfx::WindowImpl { 16 public gfx::WindowImpl {
17 public: 17 public:
18 WinWindow(PlatformWindowDelegate* delegate, const gfx::Rect& bounds); 18 WinWindow(PlatformWindowDelegate* delegate, const gfx::Rect& bounds);
19 virtual ~WinWindow(); 19 virtual ~WinWindow();
20 20
21 private: 21 private:
22 void Destroy(); 22 void Destroy();
23 23
24 // PlatformWindow: 24 // PlatformWindow:
25 virtual void Show() OVERRIDE; 25 virtual void Show() override;
26 virtual void Hide() OVERRIDE; 26 virtual void Hide() override;
27 virtual void Close() OVERRIDE; 27 virtual void Close() override;
28 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; 28 virtual void SetBounds(const gfx::Rect& bounds) override;
29 virtual gfx::Rect GetBounds() OVERRIDE; 29 virtual gfx::Rect GetBounds() override;
30 virtual void SetCapture() OVERRIDE; 30 virtual void SetCapture() override;
31 virtual void ReleaseCapture() OVERRIDE; 31 virtual void ReleaseCapture() override;
32 virtual void ToggleFullscreen() OVERRIDE; 32 virtual void ToggleFullscreen() override;
33 virtual void Maximize() OVERRIDE; 33 virtual void Maximize() override;
34 virtual void Minimize() OVERRIDE; 34 virtual void Minimize() override;
35 virtual void Restore() OVERRIDE; 35 virtual void Restore() override;
36 virtual void SetCursor(PlatformCursor cursor) OVERRIDE; 36 virtual void SetCursor(PlatformCursor cursor) override;
37 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; 37 virtual void MoveCursorTo(const gfx::Point& location) override;
38 38
39 CR_BEGIN_MSG_MAP_EX(WinWindow) 39 CR_BEGIN_MSG_MAP_EX(WinWindow)
40 CR_MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange) 40 CR_MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange)
41 CR_MESSAGE_RANGE_HANDLER_EX(WM_NCMOUSEMOVE, 41 CR_MESSAGE_RANGE_HANDLER_EX(WM_NCMOUSEMOVE,
42 WM_NCXBUTTONDBLCLK, 42 WM_NCXBUTTONDBLCLK,
43 OnMouseRange) 43 OnMouseRange)
44 CR_MESSAGE_HANDLER_EX(WM_CAPTURECHANGED, OnCaptureChanged) 44 CR_MESSAGE_HANDLER_EX(WM_CAPTURECHANGED, OnCaptureChanged)
45 45
46 CR_MESSAGE_HANDLER_EX(WM_KEYDOWN, OnKeyEvent) 46 CR_MESSAGE_HANDLER_EX(WM_KEYDOWN, OnKeyEvent)
47 CR_MESSAGE_HANDLER_EX(WM_KEYUP, OnKeyEvent) 47 CR_MESSAGE_HANDLER_EX(WM_KEYUP, OnKeyEvent)
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // Set true to let WindowTreeHostWin use a popup window 79 // Set true to let WindowTreeHostWin use a popup window
80 // with no frame/title so that the window size and test's 80 // with no frame/title so that the window size and test's
81 // expectations matches. 81 // expectations matches.
82 WIN_WINDOW_EXPORT void SetUsePopupAsRootWindowForTest(bool use); 82 WIN_WINDOW_EXPORT void SetUsePopupAsRootWindowForTest(bool use);
83 83
84 } // namespace test 84 } // namespace test
85 85
86 } // namespace ui 86 } // namespace ui
87 87
88 #endif // UI_PLATFORM_WINDOW_WIN_WIN_WINDOW_H_ 88 #endif // UI_PLATFORM_WINDOW_WIN_WIN_WINDOW_H_
OLDNEW
« no previous file with comments | « ui/ozone/run_all_unittests.cc ('k') | ui/platform_window/x11/x11_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698