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_non_client_frame_view.h" | 9 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" |
10 #include "ui/views/controls/button/button.h" | 10 #include "ui/views/controls/button/button.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 protected: | 41 protected: |
42 // views::View: | 42 // views::View: |
43 virtual void OnPaint(gfx::Canvas* canvas) override; | 43 virtual void OnPaint(gfx::Canvas* canvas) override; |
44 virtual void Layout() override; | 44 virtual void Layout() override; |
45 | 45 |
46 // views::ButtonListener: | 46 // views::ButtonListener: |
47 virtual void ButtonPressed(views::Button* sender, | 47 virtual void ButtonPressed(views::Button* sender, |
48 const ui::Event& event) override; | 48 const ui::Event& event) override; |
49 | 49 |
50 // BrowserNonClientFrameView: | 50 // BrowserNonClientFrameView: |
51 void UpdateNewStyleAvatar() override; | 51 void UpdateNewAvatarButtonImpl() override; |
52 | 52 |
53 private: | 53 private: |
54 // views::NonClientFrameView: | 54 // views::NonClientFrameView: |
55 virtual bool DoesIntersectRect(const views::View* target, | 55 virtual bool DoesIntersectRect(const views::View* target, |
56 const gfx::Rect& rect) const override; | 56 const gfx::Rect& rect) const override; |
57 | 57 |
58 // Returns the thickness of the border that makes up the window frame edges. | 58 // Returns the thickness of the border that makes up the window frame edges. |
59 // This does not include any client edge. | 59 // This does not include any client edge. |
60 int FrameBorderThickness() const; | 60 int FrameBorderThickness() const; |
61 | 61 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 int throbber_frame_; | 102 int throbber_frame_; |
103 | 103 |
104 static const int kThrobberIconCount = 24; | 104 static const int kThrobberIconCount = 24; |
105 static HICON throbber_icons_[kThrobberIconCount]; | 105 static HICON throbber_icons_[kThrobberIconCount]; |
106 static void InitThrobberIcons(); | 106 static void InitThrobberIcons(); |
107 | 107 |
108 DISALLOW_COPY_AND_ASSIGN(GlassBrowserFrameView); | 108 DISALLOW_COPY_AND_ASSIGN(GlassBrowserFrameView); |
109 }; | 109 }; |
110 | 110 |
111 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ | 111 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ |
OLD | NEW |