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

Unified Diff: mandoline/ui/aura/native_widget_view_manager.h

Issue 1123643007: Restore aura support from Mojo repo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mandoline/ui/aura/input_method_mojo_linux.cc ('k') | mandoline/ui/aura/native_widget_view_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mandoline/ui/aura/native_widget_view_manager.h
diff --git a/mandoline/ui/aura/native_widget_view_manager.h b/mandoline/ui/aura/native_widget_view_manager.h
new file mode 100644
index 0000000000000000000000000000000000000000..dd96ce11a2cd897517f9f129cb32dacb32093b33
--- /dev/null
+++ b/mandoline/ui/aura/native_widget_view_manager.h
@@ -0,0 +1,70 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MANDOLINE_UI_AURA_NATIVE_WIDGET_VIEW_MANAGER_H_
+#define MANDOLINE_UI_AURA_NATIVE_WIDGET_VIEW_MANAGER_H_
+
+#include "components/view_manager/public/cpp/view_observer.h"
+#include "ui/views/widget/native_widget_aura.h"
+
+namespace aura {
+namespace client {
+class DefaultCaptureClient;
+}
+}
+
+namespace ui {
+namespace internal {
+class InputMethodDelegate;
+}
+}
+
+namespace wm {
+class FocusController;
+}
+
+namespace mojo {
+class Shell;
+}
+
+namespace mandoline {
+
+class WindowTreeHostMojo;
+
+class NativeWidgetViewManager : public views::NativeWidgetAura,
+ public mojo::ViewObserver {
+ public:
+ NativeWidgetViewManager(views::internal::NativeWidgetDelegate* delegate,
+ mojo::Shell* shell,
+ mojo::View* view);
+ ~NativeWidgetViewManager() override;
+
+ private:
+ // Overridden from internal::NativeWidgetAura:
+ void InitNativeWidget(const views::Widget::InitParams& in_params) override;
+ void OnWindowVisibilityChanged(aura::Window* window, bool visible) override;
+
+ // ViewObserver:
+ void OnViewDestroyed(mojo::View* view) override;
+ void OnViewBoundsChanged(mojo::View* view,
+ const mojo::Rect& old_bounds,
+ const mojo::Rect& new_bounds) override;
+ void OnViewInputEvent(mojo::View* view, const mojo::EventPtr& event) override;
+
+ scoped_ptr<WindowTreeHostMojo> window_tree_host_;
+
+ scoped_ptr<wm::FocusController> focus_client_;
+
+ scoped_ptr<ui::internal::InputMethodDelegate> ime_filter_;
+
+ mojo::View* view_;
+
+ scoped_ptr<aura::client::DefaultCaptureClient> capture_client_;
+
+ DISALLOW_COPY_AND_ASSIGN(NativeWidgetViewManager);
+};
+
+} // namespace mandoline
+
+#endif // MANDOLINE_UI_AURA_NATIVE_WIDGET_VIEW_MANAGER_H_
« no previous file with comments | « mandoline/ui/aura/input_method_mojo_linux.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