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

Side by Side Diff: chrome/browser/ui/views/apps/app_window_desktop_window_tree_host_win.h

Issue 1100223002: Update {virtual,override} to follow C++11 style in chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 8 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
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 CHROME_BROWSER_UI_VIEWS_APPS_APP_WINDOW_DESKTOP_WINDOW_TREE_HOST_WIN_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_APPS_APP_WINDOW_DESKTOP_WINDOW_TREE_HOST_WIN_H_
6 #define CHROME_BROWSER_UI_VIEWS_APPS_APP_WINDOW_DESKTOP_WINDOW_TREE_HOST_WIN_H_ 6 #define CHROME_BROWSER_UI_VIEWS_APPS_APP_WINDOW_DESKTOP_WINDOW_TREE_HOST_WIN_H_
7 7
8 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_win.h" 8 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_win.h"
9 9
10 namespace views { 10 namespace views {
11 class DesktopNativeWidgetAura; 11 class DesktopNativeWidgetAura;
12 } 12 }
13 13
14 class ChromeNativeAppWindowViewsWin; 14 class ChromeNativeAppWindowViewsWin;
15 15
16 // AppWindowDesktopWindowTreeHostWin handles updating the glass of app frames on 16 // AppWindowDesktopWindowTreeHostWin handles updating the glass of app frames on
17 // Windows. It is used for all desktop app windows on Windows, but is only 17 // Windows. It is used for all desktop app windows on Windows, but is only
18 // actively doing anything when a glass window frame is being used. 18 // actively doing anything when a glass window frame is being used.
19 class AppWindowDesktopWindowTreeHostWin 19 class AppWindowDesktopWindowTreeHostWin
20 : public views::DesktopWindowTreeHostWin { 20 : public views::DesktopWindowTreeHostWin {
21 public: 21 public:
22 AppWindowDesktopWindowTreeHostWin( 22 AppWindowDesktopWindowTreeHostWin(
23 ChromeNativeAppWindowViewsWin* app_window, 23 ChromeNativeAppWindowViewsWin* app_window,
24 views::DesktopNativeWidgetAura* desktop_native_widget_aura); 24 views::DesktopNativeWidgetAura* desktop_native_widget_aura);
25 virtual ~AppWindowDesktopWindowTreeHostWin(); 25 ~AppWindowDesktopWindowTreeHostWin() override;
26 26
27 private: 27 private:
28 // Overridden from DesktopWindowTreeHostWin: 28 // Overridden from DesktopWindowTreeHostWin:
29 virtual bool GetClientAreaInsets(gfx::Insets* insets) const override; 29 bool GetClientAreaInsets(gfx::Insets* insets) const override;
30 virtual void HandleFrameChanged() override; 30 void HandleFrameChanged() override;
31 virtual void PostHandleMSG(UINT message, 31 void PostHandleMSG(UINT message, WPARAM w_param, LPARAM l_param) override;
32 WPARAM w_param,
33 LPARAM l_param) override;
34 32
35 // Updates the glass frame area by calling the DwmExtendFrameIntoClientArea 33 // Updates the glass frame area by calling the DwmExtendFrameIntoClientArea
36 // Windows function. 34 // Windows function.
37 void UpdateDWMFrame(); 35 void UpdateDWMFrame();
38 36
39 ChromeNativeAppWindowViewsWin* app_window_; 37 ChromeNativeAppWindowViewsWin* app_window_;
40 38
41 DISALLOW_COPY_AND_ASSIGN(AppWindowDesktopWindowTreeHostWin); 39 DISALLOW_COPY_AND_ASSIGN(AppWindowDesktopWindowTreeHostWin);
42 }; 40 };
43 41
44 #endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_WINDOW_DESKTOP_WINDOW_TREE_HOST_WIN_ H_ 42 #endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_WINDOW_DESKTOP_WINDOW_TREE_HOST_WIN_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698