| 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 UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_ | 5 #ifndef UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_ |
| 6 #define UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_ | 6 #define UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "ui/views/controls/button/image_button.h" | 9 #include "ui/views/controls/button/image_button.h" |
| 10 #include "ui/views/widget/widget.h" | 10 #include "ui/views/widget/widget.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 explicit CustomFrameView(Widget* frame); | 34 explicit CustomFrameView(Widget* frame); |
| 35 virtual ~CustomFrameView(); | 35 virtual ~CustomFrameView(); |
| 36 | 36 |
| 37 // Overridden from NonClientFrameView: | 37 // Overridden from NonClientFrameView: |
| 38 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; | 38 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; |
| 39 virtual gfx::Rect GetWindowBoundsForClientBounds( | 39 virtual gfx::Rect GetWindowBoundsForClientBounds( |
| 40 const gfx::Rect& client_bounds) const OVERRIDE; | 40 const gfx::Rect& client_bounds) const OVERRIDE; |
| 41 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; | 41 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; |
| 42 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) | 42 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) |
| 43 OVERRIDE; | 43 OVERRIDE; |
| 44 virtual void EnableClose(bool enable) OVERRIDE; |
| 44 virtual void ResetWindowControls() OVERRIDE; | 45 virtual void ResetWindowControls() OVERRIDE; |
| 45 virtual void UpdateWindowIcon() OVERRIDE; | 46 virtual void UpdateWindowIcon() OVERRIDE; |
| 46 | 47 |
| 47 // View overrides: | 48 // View overrides: |
| 48 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 49 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 49 virtual void Layout() OVERRIDE; | 50 virtual void Layout() OVERRIDE; |
| 50 virtual gfx::Size GetPreferredSize() OVERRIDE; | 51 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 51 | 52 |
| 52 // ButtonListener implementation: | 53 // ButtonListener implementation: |
| 53 virtual void ButtonPressed(Button* sender, const views::Event& event) | 54 virtual void ButtonPressed(Button* sender, const views::Event& event) |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 // Initialize various static resources. | 118 // Initialize various static resources. |
| 118 static void InitClass(); | 119 static void InitClass(); |
| 119 static gfx::Font* title_font_; | 120 static gfx::Font* title_font_; |
| 120 | 121 |
| 121 DISALLOW_COPY_AND_ASSIGN(CustomFrameView); | 122 DISALLOW_COPY_AND_ASSIGN(CustomFrameView); |
| 122 }; | 123 }; |
| 123 | 124 |
| 124 } // namespace views | 125 } // namespace views |
| 125 | 126 |
| 126 #endif // UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_ | 127 #endif // UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_ |
| OLD | NEW |