| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 virtual void UpdateWindowTitle() OVERRIDE; |
| 50 | 50 |
| 51 // Overridden from View: | 51 // Overridden from View: |
| 52 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 52 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 53 virtual void Layout() OVERRIDE; | 53 virtual void Layout() OVERRIDE; |
| 54 virtual gfx::Size GetPreferredSize() OVERRIDE; | 54 virtual gfx::Size GetPreferredSize() const OVERRIDE; |
| 55 virtual gfx::Size GetMinimumSize() OVERRIDE; | 55 virtual gfx::Size GetMinimumSize() const OVERRIDE; |
| 56 virtual gfx::Size GetMaximumSize() OVERRIDE; | 56 virtual gfx::Size GetMaximumSize() OVERRIDE; |
| 57 | 57 |
| 58 // Overridden from ButtonListener: | 58 // Overridden from ButtonListener: |
| 59 virtual void ButtonPressed(Button* sender, const ui::Event& event) OVERRIDE; | 59 virtual void ButtonPressed(Button* sender, const ui::Event& event) OVERRIDE; |
| 60 | 60 |
| 61 private: | 61 private: |
| 62 // Returns the thickness of the border that makes up the window frame edges. | 62 // Returns the thickness of the border that makes up the window frame edges. |
| 63 // This does not include any client edge. | 63 // This does not include any client edge. |
| 64 int FrameBorderThickness() const; | 64 int FrameBorderThickness() const; |
| 65 | 65 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 139 |
| 140 // Background painter for the window frame. | 140 // Background painter for the window frame. |
| 141 scoped_ptr<FrameBackground> frame_background_; | 141 scoped_ptr<FrameBackground> frame_background_; |
| 142 | 142 |
| 143 DISALLOW_COPY_AND_ASSIGN(CustomFrameView); | 143 DISALLOW_COPY_AND_ASSIGN(CustomFrameView); |
| 144 }; | 144 }; |
| 145 | 145 |
| 146 } // namespace views | 146 } // namespace views |
| 147 | 147 |
| 148 #endif // UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_ | 148 #endif // UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_ |
| OLD | NEW |