OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_GLASS_BROWSER_FRAME_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/scoped_observer.h" | 10 #include "base/scoped_observer.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // Visual height of the titlebar when the window is maximized (i.e. excluding | 67 // Visual height of the titlebar when the window is maximized (i.e. excluding |
68 // the area above the top of the screen). | 68 // the area above the top of the screen). |
69 int TitlebarMaximizedVisualHeight() const; | 69 int TitlebarMaximizedVisualHeight() const; |
70 | 70 |
71 SkColor GetTitlebarColor() const; | 71 SkColor GetTitlebarColor() const; |
72 | 72 |
73 protected: | 73 protected: |
74 // views::View: | 74 // views::View: |
75 void OnPaint(gfx::Canvas* canvas) override; | 75 void OnPaint(gfx::Canvas* canvas) override; |
76 void Layout() override; | 76 void Layout() override; |
77 void ChildPreferredSizeChanged(views::View* child) override; | |
78 | 77 |
79 // BrowserNonClientFrameView: | 78 // BrowserNonClientFrameView: |
80 void UpdateProfileIcons() override; | 79 void UpdateProfileIcons() override; |
81 | 80 |
82 private: | 81 private: |
83 // views::NonClientFrameView: | 82 // views::NonClientFrameView: |
84 bool DoesIntersectRect(const views::View* target, | 83 bool DoesIntersectRect(const views::View* target, |
85 const gfx::Rect& rect) const override; | 84 const gfx::Rect& rect) const override; |
86 | 85 |
87 // Returns the thickness of the border around the client area (web content, | 86 // Returns the thickness of the border around the client area (web content, |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 ScopedObserver<TabStrip, GlassBrowserFrameView> tab_strip_observer_; | 204 ScopedObserver<TabStrip, GlassBrowserFrameView> tab_strip_observer_; |
206 | 205 |
207 static const int kThrobberIconCount = 24; | 206 static const int kThrobberIconCount = 24; |
208 static HICON throbber_icons_[kThrobberIconCount]; | 207 static HICON throbber_icons_[kThrobberIconCount]; |
209 static void InitThrobberIcons(); | 208 static void InitThrobberIcons(); |
210 | 209 |
211 DISALLOW_COPY_AND_ASSIGN(GlassBrowserFrameView); | 210 DISALLOW_COPY_AND_ASSIGN(GlassBrowserFrameView); |
212 }; | 211 }; |
213 | 212 |
214 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ | 213 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ |
OLD | NEW |