| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 VIEWS_WINDOW_NATIVE_FRAME_VIEW_H_ | 5 #ifndef VIEWS_WINDOW_NATIVE_FRAME_VIEW_H_ |
| 6 #define VIEWS_WINDOW_NATIVE_FRAME_VIEW_H_ | 6 #define VIEWS_WINDOW_NATIVE_FRAME_VIEW_H_ |
| 7 | 7 |
| 8 #include "views/window/non_client_view.h" | 8 #include "views/window/non_client_view.h" |
| 9 | 9 |
| 10 namespace views { | 10 namespace views { |
| 11 | 11 |
| 12 class WindowWin; | 12 class WindowWin; |
| 13 | 13 |
| 14 class NativeFrameView : public NonClientFrameView { | 14 class NativeFrameView : public NonClientFrameView { |
| 15 public: | 15 public: |
| 16 explicit NativeFrameView(WindowWin* frame); | 16 explicit NativeFrameView(WindowWin* frame); |
| 17 virtual ~NativeFrameView(); | 17 virtual ~NativeFrameView(); |
| 18 | 18 |
| 19 // NonClientFrameView overrides: | 19 // NonClientFrameView overrides: |
| 20 virtual gfx::Rect GetBoundsForClientView() const; | 20 virtual gfx::Rect GetBoundsForClientView() const; |
| 21 virtual gfx::Rect GetWindowBoundsForClientBounds( | 21 virtual gfx::Rect GetWindowBoundsForClientBounds( |
| 22 const gfx::Rect& client_bounds) const; | 22 const gfx::Rect& client_bounds) const; |
| 23 virtual gfx::Point GetSystemMenuPoint() const; | |
| 24 virtual int NonClientHitTest(const gfx::Point& point); | 23 virtual int NonClientHitTest(const gfx::Point& point); |
| 25 virtual void GetWindowMask(const gfx::Size& size, | 24 virtual void GetWindowMask(const gfx::Size& size, |
| 26 gfx::Path* window_mask); | 25 gfx::Path* window_mask); |
| 27 virtual void EnableClose(bool enable); | 26 virtual void EnableClose(bool enable); |
| 28 virtual void ResetWindowControls(); | 27 virtual void ResetWindowControls(); |
| 29 | 28 |
| 30 private: | 29 private: |
| 31 // Our containing frame. | 30 // Our containing frame. |
| 32 WindowWin* frame_; | 31 WindowWin* frame_; |
| 33 | 32 |
| 34 DISALLOW_COPY_AND_ASSIGN(NativeFrameView); | 33 DISALLOW_COPY_AND_ASSIGN(NativeFrameView); |
| 35 }; | 34 }; |
| 36 | 35 |
| 37 } // namespace views | 36 } // namespace views |
| 38 | 37 |
| 39 #endif // #ifndef VIEWS_WINDOW_NATIVE_FRAME_VIEW_H_ | 38 #endif // #ifndef VIEWS_WINDOW_NATIVE_FRAME_VIEW_H_ |
| OLD | NEW |