OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 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_APPS_GLASS_APP_WINDOW_FRAME_VIEW_H_ | |
6 #define CHROME_BROWSER_UI_VIEWS_APPS_GLASS_APP_WINDOW_FRAME_VIEW_H_ | |
7 | |
8 #include "ui/gfx/rect.h" | |
tapted
2014/04/03 19:40:24
nit: I think ui/gfx/geometry/insets.h is the only
benwells
2014/04/04 06:50:43
Done.
| |
9 #include "ui/gfx/size.h" | |
10 #include "ui/views/window/non_client_view.h" | |
11 | |
12 namespace gfx { | |
13 class Path; | |
14 class Point; | |
15 } | |
16 | |
17 namespace ui { | |
18 class Event; | |
19 } | |
20 | |
21 namespace views { | |
22 class Widget; | |
23 } | |
24 | |
25 namespace apps { | |
26 | |
27 class NativeAppWindow; | |
28 | |
29 // A glass style app window frame view. | |
30 class GlassAppWindowFrameView : public views::NonClientFrameView { | |
tapted
2014/04/03 19:40:24
close off namespace apps? (things in chrome/browse
benwells
2014/04/04 06:50:43
Done.
| |
31 public: | |
32 static const char kViewClassName[]; | |
33 | |
34 explicit GlassAppWindowFrameView(NativeAppWindow* window, | |
35 views::Widget* widget); | |
36 virtual ~GlassAppWindowFrameView(); | |
37 | |
38 gfx::Insets GetGlassInsets() const; | |
39 | |
40 private: | |
41 // views::NonClientFrameView implementation. | |
42 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; | |
43 virtual gfx::Rect GetWindowBoundsForClientBounds( | |
44 const gfx::Rect& client_bounds) const OVERRIDE; | |
45 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; | |
46 virtual void GetWindowMask(const gfx::Size& size, | |
47 gfx::Path* window_mask) OVERRIDE; | |
48 virtual void ResetWindowControls() OVERRIDE {} | |
49 virtual void UpdateWindowIcon() OVERRIDE {} | |
50 virtual void UpdateWindowTitle() OVERRIDE {} | |
51 | |
52 // views::View implementation. | |
53 virtual gfx::Size GetPreferredSize() OVERRIDE; | |
54 virtual const char* GetClassName() const OVERRIDE; | |
55 virtual gfx::Size GetMinimumSize() OVERRIDE; | |
56 virtual gfx::Size GetMaximumSize() OVERRIDE; | |
57 | |
58 NativeAppWindow* window_; | |
59 views::Widget* widget_; | |
60 | |
61 DISALLOW_COPY_AND_ASSIGN(GlassAppWindowFrameView); | |
62 }; | |
63 | |
64 } // namespace apps | |
65 | |
66 #endif // CHROME_BROWSER_UI_VIEWS_APPS_GLASS_APP_WINDOW_FRAME_VIEW_H_ | |
OLD | NEW |