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

Side by Side Diff: mandoline/ui/aura/native_widget_view_manager.h

Issue 1340983002: Mandoline UI Process: Update namespaces and file names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 3 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MANDOLINE_UI_AURA_NATIVE_WIDGET_VIEW_MANAGER_H_ 5 #ifndef MANDOLINE_UI_AURA_NATIVE_WIDGET_VIEW_MANAGER_H_
6 #define MANDOLINE_UI_AURA_NATIVE_WIDGET_VIEW_MANAGER_H_ 6 #define MANDOLINE_UI_AURA_NATIVE_WIDGET_VIEW_MANAGER_H_
7 7
8 #include "components/mus/public/cpp/view_observer.h" 8 #include "components/mus/public/cpp/view_observer.h"
9 #include "ui/views/widget/native_widget_aura.h" 9 #include "ui/views/widget/native_widget_aura.h"
10 10
(...skipping 15 matching lines...) Expand all
26 26
27 namespace mojo { 27 namespace mojo {
28 class Shell; 28 class Shell;
29 } 29 }
30 30
31 namespace mandoline { 31 namespace mandoline {
32 32
33 class WindowTreeHostMojo; 33 class WindowTreeHostMojo;
34 34
35 class NativeWidgetViewManager : public views::NativeWidgetAura, 35 class NativeWidgetViewManager : public views::NativeWidgetAura,
36 public mojo::ViewObserver { 36 public mus::ViewObserver {
37 public: 37 public:
38 NativeWidgetViewManager(views::internal::NativeWidgetDelegate* delegate, 38 NativeWidgetViewManager(views::internal::NativeWidgetDelegate* delegate,
39 mojo::Shell* shell, 39 mojo::Shell* shell,
40 mojo::View* view); 40 mus::View* view);
41 ~NativeWidgetViewManager() override; 41 ~NativeWidgetViewManager() override;
42 42
43 private: 43 private:
44 // Overridden from internal::NativeWidgetAura: 44 // Overridden from internal::NativeWidgetAura:
45 void InitNativeWidget(const views::Widget::InitParams& in_params) override; 45 void InitNativeWidget(const views::Widget::InitParams& in_params) override;
46 void OnWindowVisibilityChanged(aura::Window* window, bool visible) override; 46 void OnWindowVisibilityChanged(aura::Window* window, bool visible) override;
47 47
48 // ViewObserver: 48 // ViewObserver:
49 void OnViewDestroyed(mojo::View* view) override; 49 void OnViewDestroyed(mus::View* view) override;
50 void OnViewBoundsChanged(mojo::View* view, 50 void OnViewBoundsChanged(mus::View* view,
51 const mojo::Rect& old_bounds, 51 const mojo::Rect& old_bounds,
52 const mojo::Rect& new_bounds) override; 52 const mojo::Rect& new_bounds) override;
53 void OnViewFocusChanged(mojo::View* gained_focus, 53 void OnViewFocusChanged(mus::View* gained_focus,
54 mojo::View* lost_focus) override; 54 mus::View* lost_focus) override;
55 void OnViewInputEvent(mojo::View* view, const mojo::EventPtr& event) override; 55 void OnViewInputEvent(mus::View* view, const mojo::EventPtr& event) override;
56 56
57 scoped_ptr<WindowTreeHostMojo> window_tree_host_; 57 scoped_ptr<WindowTreeHostMojo> window_tree_host_;
58 58
59 scoped_ptr<wm::FocusController> focus_client_; 59 scoped_ptr<wm::FocusController> focus_client_;
60 60
61 mojo::View* view_; 61 mus::View* view_;
62 62
63 scoped_ptr<aura::client::DefaultCaptureClient> capture_client_; 63 scoped_ptr<aura::client::DefaultCaptureClient> capture_client_;
64 64
65 DISALLOW_COPY_AND_ASSIGN(NativeWidgetViewManager); 65 DISALLOW_COPY_AND_ASSIGN(NativeWidgetViewManager);
66 }; 66 };
67 67
68 } // namespace mandoline 68 } // namespace mandoline
69 69
70 #endif // MANDOLINE_UI_AURA_NATIVE_WIDGET_VIEW_MANAGER_H_ 70 #endif // MANDOLINE_UI_AURA_NATIVE_WIDGET_VIEW_MANAGER_H_
OLDNEW
« no previous file with comments | « mandoline/ui/aura/input_method_mandoline.cc ('k') | mandoline/ui/aura/native_widget_view_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698