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_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 #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.h" | 10 #include "chrome/browser/ui/views/frame/browser_frame.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 SkBitmap** left_corner, | 61 SkBitmap** left_corner, |
62 SkBitmap** right_corner); | 62 SkBitmap** right_corner); |
63 | 63 |
64 // Overridden from views::NonClientFrameView: | 64 // Overridden from views::NonClientFrameView: |
65 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; | 65 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; |
66 virtual gfx::Rect GetWindowBoundsForClientBounds( | 66 virtual gfx::Rect GetWindowBoundsForClientBounds( |
67 const gfx::Rect& client_bounds) const OVERRIDE; | 67 const gfx::Rect& client_bounds) const OVERRIDE; |
68 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; | 68 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; |
69 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) | 69 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) |
70 OVERRIDE; | 70 OVERRIDE; |
71 virtual void EnableClose(bool enable) OVERRIDE; | |
72 virtual void ResetWindowControls() OVERRIDE; | 71 virtual void ResetWindowControls() OVERRIDE; |
73 virtual void UpdateWindowIcon() OVERRIDE; | 72 virtual void UpdateWindowIcon() OVERRIDE; |
74 | 73 |
75 // Overridden from views::View: | 74 // Overridden from views::View: |
76 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 75 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
77 virtual void Layout() OVERRIDE; | 76 virtual void Layout() OVERRIDE; |
78 virtual bool HitTest(const gfx::Point& l) const OVERRIDE; | 77 virtual bool HitTest(const gfx::Point& l) const OVERRIDE; |
79 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 78 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
80 | 79 |
81 // Overridden from views::ButtonListener: | 80 // Overridden from views::ButtonListener: |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 | 161 |
163 // The bounds of the ClientView. | 162 // The bounds of the ClientView. |
164 gfx::Rect client_view_bounds_; | 163 gfx::Rect client_view_bounds_; |
165 | 164 |
166 content::NotificationRegistrar registrar_; | 165 content::NotificationRegistrar registrar_; |
167 | 166 |
168 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView); | 167 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView); |
169 }; | 168 }; |
170 | 169 |
171 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ | 170 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ |
OLD | NEW |