OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_MUS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_MUS_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_MUS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_MUS_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
12 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" | 12 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" |
13 #include "chrome/browser/ui/views/tab_icon_view_model.h" | 13 #include "chrome/browser/ui/views/tab_icon_view_model.h" |
14 #include "chrome/browser/ui/views/tabs/tab_strip_observer.h" | 14 #include "chrome/browser/ui/views/tabs/tab_strip_observer.h" |
15 | 15 |
16 #if !defined(OS_CHROMEOS) | 16 #if !defined(OS_CHROMEOS) |
17 #include "chrome/browser/ui/views/frame/avatar_button_manager.h" | 17 #include "chrome/browser/ui/views/frame/avatar_button_manager.h" |
18 #endif | 18 #endif |
19 | 19 |
20 class TabIconView; | 20 class TabIconView; |
21 | 21 |
| 22 namespace views { |
| 23 class MenuButton; |
| 24 } |
| 25 |
22 class BrowserNonClientFrameViewMus : public BrowserNonClientFrameView, | 26 class BrowserNonClientFrameViewMus : public BrowserNonClientFrameView, |
23 public TabIconViewModel, | 27 public TabIconViewModel, |
24 public TabStripObserver { | 28 public TabStripObserver { |
25 public: | 29 public: |
26 static const char kViewClassName[]; | 30 static const char kViewClassName[]; |
27 | 31 |
28 BrowserNonClientFrameViewMus(BrowserFrame* frame, BrowserView* browser_view); | 32 BrowserNonClientFrameViewMus(BrowserFrame* frame, BrowserView* browser_view); |
29 ~BrowserNonClientFrameViewMus() override; | 33 ~BrowserNonClientFrameViewMus() override; |
30 | 34 |
31 void Init(); | 35 void Init(); |
32 | 36 |
33 // BrowserNonClientFrameView: | 37 // BrowserNonClientFrameView: |
34 void OnBrowserViewInitViewsComplete() override; | 38 void OnBrowserViewInitViewsComplete() override; |
35 gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const override; | 39 gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const override; |
36 int GetTopInset(bool restored) const override; | 40 int GetTopInset(bool restored) const override; |
37 int GetThemeBackgroundXInset() const override; | 41 int GetThemeBackgroundXInset() const override; |
38 void UpdateThrobber(bool running) override; | 42 void UpdateThrobber(bool running) override; |
39 views::View* GetProfileSwitcherView() const override; | 43 views::MenuButton* GetProfileSwitcherButton() const override; |
40 void UpdateClientArea() override; | 44 void UpdateClientArea() override; |
41 | 45 |
42 // views::NonClientFrameView: | 46 // views::NonClientFrameView: |
43 gfx::Rect GetBoundsForClientView() const override; | 47 gfx::Rect GetBoundsForClientView() const override; |
44 gfx::Rect GetWindowBoundsForClientBounds( | 48 gfx::Rect GetWindowBoundsForClientBounds( |
45 const gfx::Rect& client_bounds) const override; | 49 const gfx::Rect& client_bounds) const override; |
46 int NonClientHitTest(const gfx::Point& point) override; | 50 int NonClientHitTest(const gfx::Point& point) override; |
47 void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) override; | 51 void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) override; |
48 void ResetWindowControls() override; | 52 void ResetWindowControls() override; |
49 void UpdateWindowIcon() override; | 53 void UpdateWindowIcon() override; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 // Wrapper around the in-frame avatar switcher. | 114 // Wrapper around the in-frame avatar switcher. |
111 AvatarButtonManager profile_switcher_; | 115 AvatarButtonManager profile_switcher_; |
112 #endif | 116 #endif |
113 | 117 |
114 TabStrip* tab_strip_; | 118 TabStrip* tab_strip_; |
115 | 119 |
116 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewMus); | 120 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewMus); |
117 }; | 121 }; |
118 | 122 |
119 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_MUS_H_ | 123 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_MUS_H_ |
OLD | NEW |