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

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

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 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
« no previous file with comments | « mojo/views/native_widget_mojo.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
(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 MOJO_VIEWS_NATIVE_WIDGET_VIEW_MANAGER_H_
6 #define MOJO_VIEWS_NATIVE_WIDGET_VIEW_MANAGER_H_
7
8 #include "mojo/services/view_manager/public/cpp/view_observer.h"
9 #include "ui/views/widget/native_widget_aura.h"
10
11 namespace aura {
12 namespace client {
13 class DefaultCaptureClient;
14 }
15 }
16
17 namespace ui {
18 namespace internal {
19 class InputMethodDelegate;
20 }
21 }
22
23 namespace wm {
24 class FocusController;
25 }
26
27 namespace mojo {
28
29 class Shell;
30 class WindowTreeHostMojo;
31
32 class NativeWidgetViewManager : public views::NativeWidgetAura,
33 public ViewObserver {
34 public:
35 NativeWidgetViewManager(views::internal::NativeWidgetDelegate* delegate,
36 Shell* shell,
37 View* view);
38 ~NativeWidgetViewManager() override;
39
40 private:
41 // Overridden from internal::NativeWidgetAura:
42 void InitNativeWidget(const views::Widget::InitParams& in_params) override;
43 void OnWindowVisibilityChanged(aura::Window* window, bool visible) override;
44
45 // ViewObserver:
46 void OnViewDestroyed(View* view) override;
47 void OnViewBoundsChanged(View* view,
48 const Rect& old_bounds,
49 const Rect& new_bounds) override;
50 void OnViewInputEvent(View* view, const EventPtr& event) override;
51
52 scoped_ptr<WindowTreeHostMojo> window_tree_host_;
53
54 scoped_ptr<wm::FocusController> focus_client_;
55
56 scoped_ptr<ui::internal::InputMethodDelegate> ime_filter_;
57
58 View* view_;
59
60 scoped_ptr<aura::client::DefaultCaptureClient> capture_client_;
61
62 DISALLOW_COPY_AND_ASSIGN(NativeWidgetViewManager);
63 };
64
65 } // namespace mojo
66
67 #endif // MOJO_VIEWS_NATIVE_WIDGET_VIEW_MANAGER_H_
OLDNEW
« no previous file with comments | « mojo/views/native_widget_mojo.cc ('k') | mojo/views/native_widget_view_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698