| 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; |
| 71 virtual void ResetWindowControls() OVERRIDE; | 72 virtual void ResetWindowControls() OVERRIDE; |
| 72 virtual void UpdateWindowIcon() OVERRIDE; | 73 virtual void UpdateWindowIcon() OVERRIDE; |
| 73 | 74 |
| 74 // Overridden from views::View: | 75 // Overridden from views::View: |
| 75 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 76 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 76 virtual void Layout() OVERRIDE; | 77 virtual void Layout() OVERRIDE; |
| 77 virtual bool HitTest(const gfx::Point& l) const OVERRIDE; | 78 virtual bool HitTest(const gfx::Point& l) const OVERRIDE; |
| 78 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 79 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| 79 | 80 |
| 80 // Overridden from views::ButtonListener: | 81 // Overridden from views::ButtonListener: |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 | 162 |
| 162 // The bounds of the ClientView. | 163 // The bounds of the ClientView. |
| 163 gfx::Rect client_view_bounds_; | 164 gfx::Rect client_view_bounds_; |
| 164 | 165 |
| 165 content::NotificationRegistrar registrar_; | 166 content::NotificationRegistrar registrar_; |
| 166 | 167 |
| 167 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView); | 168 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView); |
| 168 }; | 169 }; |
| 169 | 170 |
| 170 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ | 171 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ |
| OLD | NEW |