| 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 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 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 // Overridden from NonClientFrameView: | 40 // Overridden from NonClientFrameView: |
| 41 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; | 41 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; |
| 42 virtual gfx::Rect GetWindowBoundsForClientBounds( | 42 virtual gfx::Rect GetWindowBoundsForClientBounds( |
| 43 const gfx::Rect& client_bounds) const OVERRIDE; | 43 const gfx::Rect& client_bounds) const OVERRIDE; |
| 44 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; | 44 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; |
| 45 virtual void GetWindowMask(const gfx::Size& size, | 45 virtual void GetWindowMask(const gfx::Size& size, |
| 46 gfx::Path* window_mask) OVERRIDE; | 46 gfx::Path* window_mask) OVERRIDE; |
| 47 virtual void ResetWindowControls() OVERRIDE; | 47 virtual void ResetWindowControls() OVERRIDE; |
| 48 virtual void UpdateWindowIcon() OVERRIDE; | 48 virtual void UpdateWindowIcon() OVERRIDE; |
| 49 virtual void UpdateWindowTitle() OVERRIDE; |
| 49 | 50 |
| 50 // Overridden from View: | 51 // Overridden from View: |
| 51 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 52 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 52 virtual void Layout() OVERRIDE; | 53 virtual void Layout() OVERRIDE; |
| 53 virtual gfx::Size GetPreferredSize() OVERRIDE; | 54 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 54 | 55 |
| 55 // Overridden from ButtonListener: | 56 // Overridden from ButtonListener: |
| 56 virtual void ButtonPressed(Button* sender, const ui::Event& event) OVERRIDE; | 57 virtual void ButtonPressed(Button* sender, const ui::Event& event) OVERRIDE; |
| 57 | 58 |
| 58 private: | 59 private: |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 | 134 |
| 134 // Background painter for the window frame. | 135 // Background painter for the window frame. |
| 135 scoped_ptr<FrameBackground> frame_background_; | 136 scoped_ptr<FrameBackground> frame_background_; |
| 136 | 137 |
| 137 DISALLOW_COPY_AND_ASSIGN(CustomFrameView); | 138 DISALLOW_COPY_AND_ASSIGN(CustomFrameView); |
| 138 }; | 139 }; |
| 139 | 140 |
| 140 } // namespace views | 141 } // namespace views |
| 141 | 142 |
| 142 #endif // UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_ | 143 #endif // UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_ |
| OLD | NEW |