Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(601)

Side by Side Diff: chrome/browser/ui/views/apps/glass_app_window_frame_view.h

Issue 213743017: Remove title and icon from chrome apps native style title bars. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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"
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 {
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698