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

Unified Diff: ui/aura/remote_root_window_host_win.h

Issue 11047012: Wiring metro mouse events to aura viewer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
Index: ui/aura/remote_root_window_host_win.h
===================================================================
--- ui/aura/remote_root_window_host_win.h (revision 0)
+++ ui/aura/remote_root_window_host_win.h (revision 0)
@@ -0,0 +1,70 @@
+// Copyright (c) 2012 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 UI_AURA_REMOTE_ROOT_WINDOW_HOST_WIN_H_
+#define UI_AURA_REMOTE_ROOT_WINDOW_HOST_WIN_H_
+
+#include "base/compiler_specific.h"
+#include "ui/aura/root_window_host.h"
+#include "ui/base/win/window_impl.h"
+
+namespace ui {
+class ViewProp;
+}
+
+namespace IPC {
+class Message;
+}
+
+namespace aura {
+
+class AURA_EXPORT RemoteRootWindowHostWin : public RootWindowHost {
Ben Goodger (Google) 2012/10/04 15:48:30 // RWH implementation that receives events from a
cpu_(ooo_6.6-7.5) 2012/10/04 19:57:56 Done.
+ public:
+ static RemoteRootWindowHostWin* Instance();
+ static RootWindow* CreateRootWindow(const gfx::Rect& bounds);
+
+ void OnMouseMoved(int x, int y, int extra);
+ void OnMouseClick(int x, int y, int extra);
+
+ RemoteRootWindowHostWin(
Ben Goodger (Google) 2012/10/04 15:48:30 ctor/dtors -> start of private section, don't forg
cpu_(ooo_6.6-7.5) 2012/10/04 19:57:56 Done.
+ RootWindowHostDelegate* delegate, const gfx::Rect& bounds);
+
+ virtual ~RemoteRootWindowHostWin();
+
+ protected:
Ben Goodger (Google) 2012/10/04 15:48:30 do you expect this to get overridden? if not, priv
cpu_(ooo_6.6-7.5) 2012/10/04 19:57:56 Done.
+ // RootWindowHost:
+ virtual RootWindow* GetRootWindow() OVERRIDE;
+ virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE;
+ virtual void Show() OVERRIDE;
+ virtual void Hide() OVERRIDE;
+ virtual void ToggleFullScreen() OVERRIDE;
+ virtual gfx::Rect GetBounds() const OVERRIDE;
+ virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
+ virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE;
+ virtual void SetCapture() OVERRIDE;
+ virtual void ReleaseCapture() OVERRIDE;
+ virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE;
+ virtual void ShowCursor(bool show) OVERRIDE;
+ virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE;
+ virtual bool ConfineCursorToRootWindow() OVERRIDE;
+ virtual void UnConfineCursor() OVERRIDE;
+ virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE;
+ virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE;
+ virtual bool GrabSnapshot(
+ const gfx::Rect& snapshot_bounds,
+ std::vector<unsigned char>* png_representation) OVERRIDE;
+ virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE;
+ virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE;
+ virtual void PrepareForShutdown() OVERRIDE;
+
+ private:
+ RootWindowHostDelegate* delegate_;
+ scoped_ptr<ui::ViewProp> prop_;
+
+ DISALLOW_COPY_AND_ASSIGN(RemoteRootWindowHostWin);
+};
+
+} // namespace aura
+
+#endif // UI_AURA_REMOTE_ROOT_WINDOW_HOST_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698