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

Side by Side Diff: chrome/browser/ui/views/frame/app_non_client_frame_view_aura.h

Issue 11229041: Rename and move Ash window frame files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 | Annotate | Revision Log
OLDNEW
(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_FRAME_APP_NON_CLIENT_FRAME_VIEW_AURA_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_APP_NON_CLIENT_FRAME_VIEW_AURA_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h"
10
11 namespace aura {
12 class Window;
13 }
14
15 // NonClientFrameViewAura implementation for apps.
16 // TODO(jamescook): Rename this to AppNonClientFrameViewAsh. It is only used
17 // with the Aura shell (Ash). crbug.com/156361
18 class AppNonClientFrameViewAura : public BrowserNonClientFrameView {
19 public:
20 static const char kViewClassName[]; // visible for test
21 static const char kControlWindowName[]; // visible for test
22
23 AppNonClientFrameViewAura(
24 BrowserFrame* frame, BrowserView* browser_view);
25 virtual ~AppNonClientFrameViewAura();
26
27 // NonClientFrameView:
28 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE;
29 virtual gfx::Rect GetWindowBoundsForClientBounds(
30 const gfx::Rect& client_bounds) const OVERRIDE;
31 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE;
32 virtual void GetWindowMask(
33 const gfx::Size& size,
34 gfx::Path* window_mask) OVERRIDE;
35 virtual void ResetWindowControls() OVERRIDE;
36 virtual void UpdateWindowIcon() OVERRIDE;
37 virtual void UpdateWindowTitle() OVERRIDE;
38
39 // BrowserNonClientFrameView:
40 virtual gfx::Rect GetBoundsForTabStrip(
41 views::View* tabstrip) const OVERRIDE;
42 virtual TabStripInsets GetTabStripInsets(bool restored) const OVERRIDE;
43 virtual int GetThemeBackgroundXInset() const OVERRIDE;
44 virtual void UpdateThrobber(bool running) OVERRIDE;
45
46 // View:
47 virtual std::string GetClassName() const OVERRIDE;
48 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE;
49
50 private:
51 class ControlView;
52 class FrameObserver;
53
54 gfx::Rect GetControlBounds() const;
55
56 // Closes |control_widget_|.
57 void CloseControlWidget();
58
59 // The View containing the restore and close buttons.
60 ControlView* control_view_;
61 // The widget holding the control_view_.
62 views::Widget* control_widget_;
63 // Observer for browser frame close.
64 scoped_ptr<FrameObserver> frame_observer_;
65
66 DISALLOW_COPY_AND_ASSIGN(AppNonClientFrameViewAura);
67 };
68
69 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_APP_NON_CLIENT_FRAME_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698