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

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

Issue 11269022: Add Vector2d classes that represent offsets, instead of using Point. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: RenderText fixup Created 8 years, 1 month 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_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 RenderWidgetHostView* reference_host_view) OVERRIDE; 49 RenderWidgetHostView* reference_host_view) OVERRIDE;
50 virtual RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE; 50 virtual RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE;
51 virtual void WasShown() OVERRIDE; 51 virtual void WasShown() OVERRIDE;
52 virtual void WasHidden() OVERRIDE; 52 virtual void WasHidden() OVERRIDE;
53 virtual void SetSize(const gfx::Size& size) OVERRIDE; 53 virtual void SetSize(const gfx::Size& size) OVERRIDE;
54 virtual void SetBounds(const gfx::Rect& rect) OVERRIDE; 54 virtual void SetBounds(const gfx::Rect& rect) OVERRIDE;
55 virtual gfx::NativeView GetNativeView() const OVERRIDE; 55 virtual gfx::NativeView GetNativeView() const OVERRIDE;
56 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE; 56 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE;
57 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; 57 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE;
58 virtual void MovePluginWindows( 58 virtual void MovePluginWindows(
59 const gfx::Point& scroll_offset, 59 const gfx::Vector2d& scroll_offset,
60 const std::vector<webkit::npapi::WebPluginGeometry>& moves) OVERRIDE; 60 const std::vector<webkit::npapi::WebPluginGeometry>& moves) OVERRIDE;
61 virtual void Focus() OVERRIDE; 61 virtual void Focus() OVERRIDE;
62 virtual void Blur() OVERRIDE; 62 virtual void Blur() OVERRIDE;
63 virtual bool HasFocus() const OVERRIDE; 63 virtual bool HasFocus() const OVERRIDE;
64 virtual bool IsSurfaceAvailableForCopy() const OVERRIDE; 64 virtual bool IsSurfaceAvailableForCopy() const OVERRIDE;
65 virtual void Show() OVERRIDE; 65 virtual void Show() OVERRIDE;
66 virtual void Hide() OVERRIDE; 66 virtual void Hide() OVERRIDE;
67 virtual bool IsShowing() OVERRIDE; 67 virtual bool IsShowing() OVERRIDE;
68 virtual gfx::Rect GetViewBounds() const OVERRIDE; 68 virtual gfx::Rect GetViewBounds() const OVERRIDE;
69 virtual void UpdateCursor(const WebCursor& cursor) OVERRIDE; 69 virtual void UpdateCursor(const WebCursor& cursor) OVERRIDE;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 bool has_horizontal_scrollbar) OVERRIDE; 113 bool has_horizontal_scrollbar) OVERRIDE;
114 virtual void SetScrollOffsetPinning( 114 virtual void SetScrollOffsetPinning(
115 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; 115 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE;
116 virtual bool LockMouse() OVERRIDE; 116 virtual bool LockMouse() OVERRIDE;
117 virtual void UnlockMouse() OVERRIDE; 117 virtual void UnlockMouse() OVERRIDE;
118 virtual void StartContentIntent(const GURL& content_url) OVERRIDE; 118 virtual void StartContentIntent(const GURL& content_url) OVERRIDE;
119 virtual void HasTouchEventHandlers(bool need_touch_events) OVERRIDE; 119 virtual void HasTouchEventHandlers(bool need_touch_events) OVERRIDE;
120 virtual void SetCachedBackgroundColor(SkColor color) OVERRIDE; 120 virtual void SetCachedBackgroundColor(SkColor color) OVERRIDE;
121 virtual void SetCachedPageScaleFactorLimits(float minimum_scale, 121 virtual void SetCachedPageScaleFactorLimits(float minimum_scale,
122 float maximum_scale) OVERRIDE; 122 float maximum_scale) OVERRIDE;
123 virtual void UpdateFrameInfo(const gfx::Point& scroll_offset, 123 virtual void UpdateFrameInfo(const gfx::Vector2d& scroll_offset,
124 float page_scale_factor, 124 float page_scale_factor,
125 const gfx::Size& content_size) OVERRIDE; 125 const gfx::Size& content_size) OVERRIDE;
126 126
127 // Non-virtual methods 127 // Non-virtual methods
128 void SetContentViewCore(ContentViewCoreImpl* content_view_core); 128 void SetContentViewCore(ContentViewCoreImpl* content_view_core);
129 SkColor GetCachedBackgroundColor() const; 129 SkColor GetCachedBackgroundColor() const;
130 void SendKeyEvent(const NativeWebKeyboardEvent& event); 130 void SendKeyEvent(const NativeWebKeyboardEvent& event);
131 void SendTouchEvent(const WebKit::WebTouchEvent& event); 131 void SendTouchEvent(const WebKit::WebTouchEvent& event);
132 void SendMouseEvent(const WebKit::WebMouseEvent& event); 132 void SendMouseEvent(const WebKit::WebMouseEvent& event);
133 void SendMouseWheelEvent(const WebKit::WebMouseWheelEvent& event); 133 void SendMouseWheelEvent(const WebKit::WebMouseWheelEvent& event);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 // The handle for the transport surface (between renderer and browser-side 172 // The handle for the transport surface (between renderer and browser-side
173 // compositor) for this view. 173 // compositor) for this view.
174 gfx::GLSurfaceHandle shared_surface_; 174 gfx::GLSurfaceHandle shared_surface_;
175 175
176 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 176 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
177 }; 177 };
178 178
179 } // namespace content 179 } // namespace content
180 180
181 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 181 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698