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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 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 UI_AURA_REMOTE_ROOT_WINDOW_HOST_WIN_H_
6 #define UI_AURA_REMOTE_ROOT_WINDOW_HOST_WIN_H_
7
8 #include "base/compiler_specific.h"
9 #include "ui/aura/root_window_host.h"
10 #include "ui/base/win/window_impl.h"
11
12 namespace ui {
13 class ViewProp;
14 }
15
16 namespace IPC {
17 class Message;
18 }
19
20 namespace aura {
21
22 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.
23 public:
24 static RemoteRootWindowHostWin* Instance();
25 static RootWindow* CreateRootWindow(const gfx::Rect& bounds);
26
27 void OnMouseMoved(int x, int y, int extra);
28 void OnMouseClick(int x, int y, int extra);
29
30 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.
31 RootWindowHostDelegate* delegate, const gfx::Rect& bounds);
32
33 virtual ~RemoteRootWindowHostWin();
34
35 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.
36 // RootWindowHost:
37 virtual RootWindow* GetRootWindow() OVERRIDE;
38 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE;
39 virtual void Show() OVERRIDE;
40 virtual void Hide() OVERRIDE;
41 virtual void ToggleFullScreen() OVERRIDE;
42 virtual gfx::Rect GetBounds() const OVERRIDE;
43 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
44 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE;
45 virtual void SetCapture() OVERRIDE;
46 virtual void ReleaseCapture() OVERRIDE;
47 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE;
48 virtual void ShowCursor(bool show) OVERRIDE;
49 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE;
50 virtual bool ConfineCursorToRootWindow() OVERRIDE;
51 virtual void UnConfineCursor() OVERRIDE;
52 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE;
53 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE;
54 virtual bool GrabSnapshot(
55 const gfx::Rect& snapshot_bounds,
56 std::vector<unsigned char>* png_representation) OVERRIDE;
57 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE;
58 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE;
59 virtual void PrepareForShutdown() OVERRIDE;
60
61 private:
62 RootWindowHostDelegate* delegate_;
63 scoped_ptr<ui::ViewProp> prop_;
64
65 DISALLOW_COPY_AND_ASSIGN(RemoteRootWindowHostWin);
66 };
67
68 } // namespace aura
69
70 #endif // UI_AURA_REMOTE_ROOT_WINDOW_HOST_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698