| 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/win/scoped_gdi_object.h" | 10 #include "base/win/scoped_gdi_object.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 void UpdateWindowIcon() override {} | 38 void UpdateWindowIcon() override {} |
| 39 void UpdateWindowTitle() override {} | 39 void UpdateWindowTitle() override {} |
| 40 void SizeConstraintsChanged() override {} | 40 void SizeConstraintsChanged() override {} |
| 41 | 41 |
| 42 protected: | 42 protected: |
| 43 // views::View: | 43 // views::View: |
| 44 void OnPaint(gfx::Canvas* canvas) override; | 44 void OnPaint(gfx::Canvas* canvas) override; |
| 45 void Layout() override; | 45 void Layout() override; |
| 46 | 46 |
| 47 // BrowserNonClientFrameView: | 47 // BrowserNonClientFrameView: |
| 48 void UpdateAvatar() override; | 48 void UpdateProfileIcons() override; |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 // views::NonClientFrameView: | 51 // views::NonClientFrameView: |
| 52 bool DoesIntersectRect(const views::View* target, | 52 bool DoesIntersectRect(const views::View* target, |
| 53 const gfx::Rect& rect) const override; | 53 const gfx::Rect& rect) const override; |
| 54 | 54 |
| 55 // Returns the thickness of the border around the client area (web content, | 55 // Returns the thickness of the border around the client area (web content, |
| 56 // toolbar, and tabs) that separates it from the frame border. If |restored| | 56 // toolbar, and tabs) that separates it from the frame border. If |restored| |
| 57 // is true, this is calculated as if the window was restored, regardless of | 57 // is true, this is calculated as if the window was restored, regardless of |
| 58 // its current state. | 58 // its current state. |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 int throbber_frame_; | 139 int throbber_frame_; |
| 140 | 140 |
| 141 static const int kThrobberIconCount = 24; | 141 static const int kThrobberIconCount = 24; |
| 142 static HICON throbber_icons_[kThrobberIconCount]; | 142 static HICON throbber_icons_[kThrobberIconCount]; |
| 143 static void InitThrobberIcons(); | 143 static void InitThrobberIcons(); |
| 144 | 144 |
| 145 DISALLOW_COPY_AND_ASSIGN(GlassBrowserFrameView); | 145 DISALLOW_COPY_AND_ASSIGN(GlassBrowserFrameView); |
| 146 }; | 146 }; |
| 147 | 147 |
| 148 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ | 148 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ |
| OLD | NEW |