Chromium Code Reviews| 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_SIMPLE_H_ | |
| 6 #define CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_FRAME_SIMPLE_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 ConstrainedWindowFrameSimple : public views::NonClientFrameView { | |
| 18 public: | |
| 19 explicit ConstrainedWindowFrameSimple(ConstrainedWindowViews* container); | |
| 20 | |
|
Ben Goodger (Google)
2012/07/12 15:49:04
virtual dtor
Albert Bodenhamer
2012/07/12 21:20:44
Done.
| |
| 21 // Overridden from views::NonClientFrameView: | |
|
Ben Goodger (Google)
2012/07/12 15:49:04
private:
Albert Bodenhamer
2012/07/12 21:20:44
Done.
| |
| 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(ConstrainedWindowFrameSimple); | |
| 33 }; | |
| 34 #endif // CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_FRAME_SIMPLE_H_ | |
| 35 | |
| OLD | NEW |