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

Side by Side Diff: mojo/views/native_widget_view_manager.h

Issue 745743002: Makes views be initially hidden (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: feedback Created 6 years, 1 month 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
« no previous file with comments | « mojo/services/window_manager/main.cc ('k') | mojo/views/native_widget_view_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 MOJO_VIEWS_NATIVE_WIDGET_VIEW_MANAGER_H_ 5 #ifndef MOJO_VIEWS_NATIVE_WIDGET_VIEW_MANAGER_H_
6 #define MOJO_VIEWS_NATIVE_WIDGET_VIEW_MANAGER_H_ 6 #define MOJO_VIEWS_NATIVE_WIDGET_VIEW_MANAGER_H_
7 7
8 #include "mojo/services/public/cpp/view_manager/view_observer.h" 8 #include "mojo/services/public/cpp/view_manager/view_observer.h"
9 #include "ui/views/widget/native_widget_aura.h" 9 #include "ui/views/widget/native_widget_aura.h"
10 10
(...skipping 17 matching lines...) Expand all
28 28
29 class Shell; 29 class Shell;
30 class WindowTreeHostMojo; 30 class WindowTreeHostMojo;
31 31
32 class NativeWidgetViewManager : public views::NativeWidgetAura, 32 class NativeWidgetViewManager : public views::NativeWidgetAura,
33 public ViewObserver { 33 public ViewObserver {
34 public: 34 public:
35 NativeWidgetViewManager(views::internal::NativeWidgetDelegate* delegate, 35 NativeWidgetViewManager(views::internal::NativeWidgetDelegate* delegate,
36 Shell* shell, 36 Shell* shell,
37 View* view); 37 View* view);
38 virtual ~NativeWidgetViewManager(); 38 ~NativeWidgetViewManager() override;
39 39
40 private: 40 private:
41 // Overridden from internal::NativeWidgetAura: 41 // Overridden from internal::NativeWidgetAura:
42 virtual void InitNativeWidget( 42 void InitNativeWidget(const views::Widget::InitParams& in_params) override;
43 const views::Widget::InitParams& in_params) override; 43 void OnWindowVisibilityChanged(aura::Window* window, bool visible) override;
44 44
45 // ViewObserver: 45 // ViewObserver:
46 virtual void OnViewDestroyed(View* view) override; 46 void OnViewDestroyed(View* view) override;
47 virtual void OnViewBoundsChanged(View* view, 47 void OnViewBoundsChanged(View* view,
48 const Rect& old_bounds, 48 const Rect& old_bounds,
49 const Rect& new_bounds) override; 49 const Rect& new_bounds) override;
50 virtual void OnViewInputEvent(View* view, const EventPtr& event) override; 50 void OnViewInputEvent(View* view, const EventPtr& event) override;
51 51
52 scoped_ptr<WindowTreeHostMojo> window_tree_host_; 52 scoped_ptr<WindowTreeHostMojo> window_tree_host_;
53 53
54 scoped_ptr<wm::FocusController> focus_client_; 54 scoped_ptr<wm::FocusController> focus_client_;
55 55
56 scoped_ptr<ui::internal::InputMethodDelegate> ime_filter_; 56 scoped_ptr<ui::internal::InputMethodDelegate> ime_filter_;
57 57
58 View* view_; 58 View* view_;
59 59
60 scoped_ptr<aura::client::DefaultCaptureClient> capture_client_; 60 scoped_ptr<aura::client::DefaultCaptureClient> capture_client_;
61 61
62 DISALLOW_COPY_AND_ASSIGN(NativeWidgetViewManager); 62 DISALLOW_COPY_AND_ASSIGN(NativeWidgetViewManager);
63 }; 63 };
64 64
65 } // namespace mojo 65 } // namespace mojo
66 66
67 #endif // MOJO_VIEWS_NATIVE_WIDGET_VIEW_MANAGER_H_ 67 #endif // MOJO_VIEWS_NATIVE_WIDGET_VIEW_MANAGER_H_
OLDNEW
« no previous file with comments | « mojo/services/window_manager/main.cc ('k') | mojo/views/native_widget_view_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698