OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_VIEWS_NATIVE_FRAME_VIEW_H_ |
| 6 #define CHROME_VIEWS_NATIVE_FRAME_VIEW_H_ |
| 7 |
| 8 #include "chrome/views/non_client_view.h" |
| 9 |
| 10 namespace views { |
| 11 |
| 12 class NativeFrameView : public NonClientFrameView { |
| 13 public: |
| 14 explicit NativeFrameView(Window* frame); |
| 15 virtual ~NativeFrameView(); |
| 16 |
| 17 // NonClientFrameView overrides: |
| 18 virtual gfx::Rect GetBoundsForClientView() const; |
| 19 virtual gfx::Rect GetWindowBoundsForClientBounds( |
| 20 const gfx::Rect& client_bounds) const; |
| 21 virtual gfx::Point GetSystemMenuPoint() const; |
| 22 virtual int NonClientHitTest(const gfx::Point& point); |
| 23 virtual void GetWindowMask(const gfx::Size& size, |
| 24 gfx::Path* window_mask); |
| 25 virtual void EnableClose(bool enable); |
| 26 virtual void ResetWindowControls(); |
| 27 |
| 28 private: |
| 29 // Our containing frame. |
| 30 Window* frame_; |
| 31 |
| 32 DISALLOW_COPY_AND_ASSIGN(NativeFrameView); |
| 33 }; |
| 34 |
| 35 } // namespace views |
| 36 |
| 37 #endif // #ifndef CHROME_VIEWS_NATIVE_FRAME_VIEW_H_ |
| 38 |
OLD | NEW |