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

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

Issue 25536010: Make packaged apps use AppNonClientFrameViewAsh when maximized (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 2013 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_NON_CLIENT_FRAME_VIEW_SWITCHER_ASH_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_NON_CLIENT_FRAME_VIEW_SWITCHER_ASH_H_
7
8 #include "ash/wm/window_state_observer.h"
9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h"
11 #include "ui/aura/window_observer.h"
12
13 namespace aura {
14 class Window;
15 }
16
17 namespace views {
18 class Widget;
19 }
20
21 // Class which switches a widget's non client view when the widget's maximized
22 // state changes.
23 class NonClientFrameViewSwitcherAsh : public aura::WindowObserver,
24 public ash::wm::WindowStateObserver {
25 public:
26 NonClientFrameViewSwitcherAsh(views::Widget* frame_widget,
27 aura::Window* frame_window);
28 virtual ~NonClientFrameViewSwitcherAsh();
29
30 private:
31 // aura::WindowObserver override:
32 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE;
33
34 // ash::wm::WindowStateObserver override:
35 virtual void OnWindowShowTypeChanged(ash::wm::WindowState* window_state,
36 ash::wm::WindowShowType type) OVERRIDE;
37
38 // The widget whose non client view is to be switched when its maximized state
39 // changes.
40 views::Widget* frame_widget_;
41
42 // |frame_widget_|'s aura::Window.
43 aura::Window* frame_window_;
44
45 DISALLOW_COPY_AND_ASSIGN(NonClientFrameViewSwitcherAsh);
46 };
47
48 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_NON_CLIENT_FRAME_VIEW_SWITCHER_ASH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698