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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_aura.h

Issue 9347042: Introduce content::RenderWidgetHostViewPort (in content/port/browser). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head. Created 8 years, 10 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 10
(...skipping 21 matching lines...) Expand all
32 32
33 namespace WebKit { 33 namespace WebKit {
34 class WebTouchEvent; 34 class WebTouchEvent;
35 } 35 }
36 36
37 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) 37 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT)
38 class ImageTransportClient; 38 class ImageTransportClient;
39 #endif 39 #endif
40 40
41 class RenderWidgetHostViewAura 41 class RenderWidgetHostViewAura
42 : public RenderWidgetHostViewBase, 42 : public content::RenderWidgetHostViewBase,
43 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) 43 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT)
44 public ui::CompositorObserver, 44 public ui::CompositorObserver,
45 #endif 45 #endif
46 public ui::TextInputClient, 46 public ui::TextInputClient,
47 public aura::WindowDelegate, 47 public aura::WindowDelegate,
48 public aura::client::ActivationDelegate { 48 public aura::client::ActivationDelegate {
49 public: 49 public:
50 virtual ~RenderWidgetHostViewAura(); 50 virtual ~RenderWidgetHostViewAura();
51 51
52 // RenderWidgetHostView implementation. 52 // RenderWidgetHostView implementation.
53 virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE; 53 virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE;
54 virtual RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE; 54 virtual RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE;
55 virtual void SetSize(const gfx::Size& size) OVERRIDE; 55 virtual void SetSize(const gfx::Size& size) OVERRIDE;
56 virtual void SetBounds(const gfx::Rect& rect) OVERRIDE; 56 virtual void SetBounds(const gfx::Rect& rect) OVERRIDE;
57 virtual gfx::NativeView GetNativeView() const OVERRIDE; 57 virtual gfx::NativeView GetNativeView() const OVERRIDE;
58 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE; 58 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE;
59 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; 59 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE;
60 virtual bool HasFocus() const OVERRIDE; 60 virtual bool HasFocus() const OVERRIDE;
61 virtual void Show() OVERRIDE; 61 virtual void Show() OVERRIDE;
62 virtual void Hide() OVERRIDE; 62 virtual void Hide() OVERRIDE;
63 virtual bool IsShowing() OVERRIDE; 63 virtual bool IsShowing() OVERRIDE;
64 virtual gfx::Rect GetViewBounds() const OVERRIDE; 64 virtual gfx::Rect GetViewBounds() const OVERRIDE;
65 virtual void UnhandledWheelEvent( 65 virtual void UnhandledWheelEvent(
66 const WebKit::WebMouseWheelEvent& event) OVERRIDE; 66 const WebKit::WebMouseWheelEvent& event) OVERRIDE;
67 virtual void SetBackground(const SkBitmap& background) OVERRIDE; 67 virtual void SetBackground(const SkBitmap& background) OVERRIDE;
68 68
69 // Overridden from RenderWidgetHostViewBase: 69 // Overridden from RenderWidgetHostViewPort:
70 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, 70 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view,
71 const gfx::Rect& pos) OVERRIDE; 71 const gfx::Rect& pos) OVERRIDE;
72 virtual void InitAsFullscreen( 72 virtual void InitAsFullscreen(
73 RenderWidgetHostView* reference_host_view) OVERRIDE; 73 RenderWidgetHostView* reference_host_view) OVERRIDE;
74 virtual void DidBecomeSelected() OVERRIDE; 74 virtual void DidBecomeSelected() OVERRIDE;
75 virtual void WasHidden() OVERRIDE; 75 virtual void WasHidden() OVERRIDE;
76 virtual void MovePluginWindows( 76 virtual void MovePluginWindows(
77 const std::vector<webkit::npapi::WebPluginGeometry>& moves) OVERRIDE; 77 const std::vector<webkit::npapi::WebPluginGeometry>& moves) OVERRIDE;
78 virtual void Focus() OVERRIDE; 78 virtual void Focus() OVERRIDE;
79 virtual void Blur() OVERRIDE; 79 virtual void Blur() OVERRIDE;
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 // In mouse locked mode, we syntheticaly move the mouse cursor to the center 270 // In mouse locked mode, we syntheticaly move the mouse cursor to the center
271 // of the window when it reaches the window borders to avoid it going outside. 271 // of the window when it reaches the window borders to avoid it going outside.
272 // This flag is used to differentiate between these synthetic mouse move 272 // This flag is used to differentiate between these synthetic mouse move
273 // events vs. normal mouse move events. 273 // events vs. normal mouse move events.
274 bool synthetic_move_sent_; 274 bool synthetic_move_sent_;
275 275
276 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 276 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
277 }; 277 };
278 278
279 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 279 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698