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 "chrome/browser/ui/views/frame/browser_frame_win.h" | 9 #include "chrome/browser/ui/views/frame/browser_frame_win.h" |
10 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" | 10 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; | 36 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; |
37 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) | 37 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) |
38 OVERRIDE { } | 38 OVERRIDE { } |
39 virtual void ResetWindowControls() OVERRIDE { } | 39 virtual void ResetWindowControls() OVERRIDE { } |
40 virtual void UpdateWindowIcon() OVERRIDE { } | 40 virtual void UpdateWindowIcon() OVERRIDE { } |
41 | 41 |
42 protected: | 42 protected: |
43 // Overridden from views::View: | 43 // Overridden from views::View: |
44 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 44 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
45 virtual void Layout() OVERRIDE; | 45 virtual void Layout() OVERRIDE; |
46 virtual bool HitTest(const gfx::Point& l) const OVERRIDE; | 46 virtual bool HitTestRect(const gfx::Rect& rect) const OVERRIDE; |
47 | 47 |
48 private: | 48 private: |
49 // Returns the thickness of the border that makes up the window frame edges. | 49 // Returns the thickness of the border that makes up the window frame edges. |
50 // This does not include any client edge. | 50 // This does not include any client edge. |
51 int FrameBorderThickness() const; | 51 int FrameBorderThickness() const; |
52 | 52 |
53 // Returns the thickness of the entire nonclient left, right, and bottom | 53 // Returns the thickness of the entire nonclient left, right, and bottom |
54 // borders, including both the window frame and any client edge. | 54 // borders, including both the window frame and any client edge. |
55 int NonClientBorderThickness() const; | 55 int NonClientBorderThickness() const; |
56 | 56 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 content::NotificationRegistrar registrar_; | 100 content::NotificationRegistrar registrar_; |
101 | 101 |
102 static const int kThrobberIconCount = 24; | 102 static const int kThrobberIconCount = 24; |
103 static HICON throbber_icons_[kThrobberIconCount]; | 103 static HICON throbber_icons_[kThrobberIconCount]; |
104 static void InitThrobberIcons(); | 104 static void InitThrobberIcons(); |
105 | 105 |
106 DISALLOW_COPY_AND_ASSIGN(GlassBrowserFrameView); | 106 DISALLOW_COPY_AND_ASSIGN(GlassBrowserFrameView); |
107 }; | 107 }; |
108 | 108 |
109 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ | 109 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ |
OLD | NEW |