OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "chrome/browser/ui/views/frame/browser_frame_win.h" | 10 #include "chrome/browser/ui/views/frame/browser_frame_win.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 // Overridden from views::NonClientFrameView: | 34 // Overridden from views::NonClientFrameView: |
35 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; | 35 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; |
36 virtual gfx::Rect GetWindowBoundsForClientBounds( | 36 virtual gfx::Rect GetWindowBoundsForClientBounds( |
37 const gfx::Rect& client_bounds) const OVERRIDE; | 37 const gfx::Rect& client_bounds) const OVERRIDE; |
38 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; | 38 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; |
39 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) | 39 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) |
40 OVERRIDE { } | 40 OVERRIDE { } |
41 virtual void EnableClose(bool enable) OVERRIDE { } | 41 virtual void EnableClose(bool enable) OVERRIDE { } |
42 virtual void ResetWindowControls() OVERRIDE { } | 42 virtual void ResetWindowControls() OVERRIDE { } |
43 virtual void UpdateWindowIcon() OVERRIDE { } | 43 virtual void UpdateWindowIcon() OVERRIDE { } |
| 44 virtual AvatarMenuButton* GetAvatarMenuButton() OVERRIDE; |
44 | 45 |
45 protected: | 46 protected: |
46 // Overridden from views::View: | 47 // Overridden from views::View: |
47 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 48 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
48 virtual void Layout() OVERRIDE; | 49 virtual void Layout() OVERRIDE; |
49 virtual bool HitTest(const gfx::Point& l) const OVERRIDE; | 50 virtual bool HitTest(const gfx::Point& l) const OVERRIDE; |
50 | 51 |
51 private: | 52 private: |
52 // Returns the thickness of the border that makes up the window frame edges. | 53 // Returns the thickness of the border that makes up the window frame edges. |
53 // This does not include any client edge. | 54 // This does not include any client edge. |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 content::NotificationRegistrar registrar_; | 117 content::NotificationRegistrar registrar_; |
117 | 118 |
118 static const int kThrobberIconCount = 24; | 119 static const int kThrobberIconCount = 24; |
119 static HICON throbber_icons_[kThrobberIconCount]; | 120 static HICON throbber_icons_[kThrobberIconCount]; |
120 static void InitThrobberIcons(); | 121 static void InitThrobberIcons(); |
121 | 122 |
122 DISALLOW_COPY_AND_ASSIGN(GlassBrowserFrameView); | 123 DISALLOW_COPY_AND_ASSIGN(GlassBrowserFrameView); |
123 }; | 124 }; |
124 | 125 |
125 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ | 126 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ |
OLD | NEW |