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_OPAQUE_BROWSER_FRAME_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "chrome/browser/ui/views/frame/browser_frame.h" | 9 #include "chrome/browser/ui/views/frame/browser_frame.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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 const gfx::Rect& client_bounds) const OVERRIDE; | 59 const gfx::Rect& client_bounds) const OVERRIDE; |
60 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; | 60 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; |
61 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) | 61 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) |
62 OVERRIDE; | 62 OVERRIDE; |
63 virtual void ResetWindowControls() OVERRIDE; | 63 virtual void ResetWindowControls() OVERRIDE; |
64 virtual void UpdateWindowIcon() OVERRIDE; | 64 virtual void UpdateWindowIcon() OVERRIDE; |
65 | 65 |
66 // Overridden from views::View: | 66 // Overridden from views::View: |
67 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 67 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
68 virtual void Layout() OVERRIDE; | 68 virtual void Layout() OVERRIDE; |
69 virtual bool HitTest(const gfx::Point& l) const OVERRIDE; | 69 virtual bool HitTest(const gfx::Rect& r) const OVERRIDE; |
70 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 70 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
71 | 71 |
72 // Overridden from views::ButtonListener: | 72 // Overridden from views::ButtonListener: |
73 virtual void ButtonPressed(views::Button* sender, const views::Event& event) | 73 virtual void ButtonPressed(views::Button* sender, const views::Event& event) |
74 OVERRIDE; | 74 OVERRIDE; |
75 | 75 |
76 // Overridden from chrome::TabIconViewModel: | 76 // Overridden from chrome::TabIconViewModel: |
77 virtual bool ShouldTabIconViewAnimate() const OVERRIDE; | 77 virtual bool ShouldTabIconViewAnimate() const OVERRIDE; |
78 virtual gfx::ImageSkia GetFaviconForTabIconView() OVERRIDE; | 78 virtual gfx::ImageSkia GetFaviconForTabIconView() OVERRIDE; |
79 | 79 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 167 |
168 content::NotificationRegistrar registrar_; | 168 content::NotificationRegistrar registrar_; |
169 | 169 |
170 // Background painter for the window frame. | 170 // Background painter for the window frame. |
171 scoped_ptr<views::FrameBackground> frame_background_; | 171 scoped_ptr<views::FrameBackground> frame_background_; |
172 | 172 |
173 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView); | 173 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView); |
174 }; | 174 }; |
175 | 175 |
176 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ | 176 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ |
OLD | NEW |