| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_FRAME_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_FRAME_VIEW_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "ui/views/window/non_client_view.h" |
| 10 |
| 11 class ConstrainedWindowViews; |
| 12 |
| 13 //////////////////////////////////////////////////////////////////////////////// |
| 14 // ConstrainedWindowFrameView |
| 15 // Provides a custom Window frame for ConstrainedWindowViews. |
| 16 // Implements a simple window with a minimal frame. |
| 17 class ConstrainedWindowFrameView : public views::NonClientFrameView { |
| 18 public: |
| 19 explicit ConstrainedWindowFrameView(ConstrainedWindowViews* container); |
| 20 |
| 21 // Overridden from views::NonClientFrameView: |
| 22 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; |
| 23 virtual gfx::Rect GetWindowBoundsForClientBounds( |
| 24 const gfx::Rect& client_bounds) const OVERRIDE; |
| 25 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; |
| 26 virtual void GetWindowMask(const gfx::Size& size, |
| 27 gfx::Path* window_mask) OVERRIDE {} |
| 28 virtual void ResetWindowControls() OVERRIDE {} |
| 29 virtual void UpdateWindowIcon() OVERRIDE {} |
| 30 |
| 31 private: |
| 32 DISALLOW_COPY_AND_ASSIGN(ConstrainedWindowFrameView); |
| 33 }; |
| 34 #endif // CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_FRAME_VIEW_H_ |
| OLD | NEW |