OLD | NEW |
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_BASE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
7 | 7 |
8 #if defined(OS_MACOSX) | 8 #if defined(OS_MACOSX) |
9 #include <OpenGL/OpenGL.h> | 9 #include <OpenGL/OpenGL.h> |
10 #endif | 10 #endif |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 const gfx::Range& range) OVERRIDE; | 51 const gfx::Range& range) OVERRIDE; |
52 virtual void SetBackground(const SkBitmap& background) OVERRIDE; | 52 virtual void SetBackground(const SkBitmap& background) OVERRIDE; |
53 virtual const SkBitmap& GetBackground() OVERRIDE; | 53 virtual const SkBitmap& GetBackground() OVERRIDE; |
54 virtual gfx::Size GetPhysicalBackingSize() const OVERRIDE; | 54 virtual gfx::Size GetPhysicalBackingSize() const OVERRIDE; |
55 virtual float GetOverdrawBottomHeight() const OVERRIDE; | 55 virtual float GetOverdrawBottomHeight() const OVERRIDE; |
56 virtual bool IsShowingContextMenu() const OVERRIDE; | 56 virtual bool IsShowingContextMenu() const OVERRIDE; |
57 virtual void SetShowingContextMenu(bool showing_menu) OVERRIDE; | 57 virtual void SetShowingContextMenu(bool showing_menu) OVERRIDE; |
58 virtual string16 GetSelectedText() const OVERRIDE; | 58 virtual string16 GetSelectedText() const OVERRIDE; |
59 virtual bool IsMouseLocked() OVERRIDE; | 59 virtual bool IsMouseLocked() OVERRIDE; |
60 virtual void UnhandledWheelEvent( | 60 virtual void UnhandledWheelEvent( |
61 const WebKit::WebMouseWheelEvent& event) OVERRIDE; | 61 const blink::WebMouseWheelEvent& event) OVERRIDE; |
62 virtual InputEventAckState FilterInputEvent( | 62 virtual InputEventAckState FilterInputEvent( |
63 const WebKit::WebInputEvent& input_event) OVERRIDE; | 63 const blink::WebInputEvent& input_event) OVERRIDE; |
64 virtual void OnSetNeedsFlushInput() OVERRIDE; | 64 virtual void OnSetNeedsFlushInput() OVERRIDE; |
65 virtual void OnDidFlushInput() OVERRIDE; | 65 virtual void OnDidFlushInput() OVERRIDE; |
66 virtual void GestureEventAck(int gesture_event_type, | 66 virtual void GestureEventAck(int gesture_event_type, |
67 InputEventAckState ack_result) OVERRIDE; | 67 InputEventAckState ack_result) OVERRIDE; |
68 virtual void SetPopupType(WebKit::WebPopupType popup_type) OVERRIDE; | 68 virtual void SetPopupType(blink::WebPopupType popup_type) OVERRIDE; |
69 virtual WebKit::WebPopupType GetPopupType() OVERRIDE; | 69 virtual blink::WebPopupType GetPopupType() OVERRIDE; |
70 virtual BrowserAccessibilityManager* | 70 virtual BrowserAccessibilityManager* |
71 GetBrowserAccessibilityManager() const OVERRIDE; | 71 GetBrowserAccessibilityManager() const OVERRIDE; |
72 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, | 72 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, |
73 InputEventAckState ack_result) OVERRIDE; | 73 InputEventAckState ack_result) OVERRIDE; |
74 virtual SyntheticGesture* CreateSmoothScrollGesture( | 74 virtual SyntheticGesture* CreateSmoothScrollGesture( |
75 bool scroll_down, int pixels_to_scroll, int mouse_event_x, | 75 bool scroll_down, int pixels_to_scroll, int mouse_event_x, |
76 int mouse_event_y) OVERRIDE; | 76 int mouse_event_y) OVERRIDE; |
77 virtual SyntheticGesture* CreatePinchGesture( | 77 virtual SyntheticGesture* CreatePinchGesture( |
78 bool zoom_in, int pixels_to_move, int anchor_x, | 78 bool zoom_in, int pixels_to_move, int anchor_x, |
79 int anchor_y) OVERRIDE; | 79 int anchor_y) OVERRIDE; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 HWND parent, | 119 HWND parent, |
120 const gfx::Rect& damaged_screen_rect); | 120 const gfx::Rect& damaged_screen_rect); |
121 | 121 |
122 // Needs to be called before the HWND backing the view goes away to avoid | 122 // Needs to be called before the HWND backing the view goes away to avoid |
123 // crashes in Windowed plugins. | 123 // crashes in Windowed plugins. |
124 static void DetachPluginsHelper(HWND parent); | 124 static void DetachPluginsHelper(HWND parent); |
125 #endif | 125 #endif |
126 | 126 |
127 // Whether this view is a popup and what kind of popup it is (select, | 127 // Whether this view is a popup and what kind of popup it is (select, |
128 // autofill...). | 128 // autofill...). |
129 WebKit::WebPopupType popup_type_; | 129 blink::WebPopupType popup_type_; |
130 | 130 |
131 // A custom background to paint behind the web content. This will be tiled | 131 // A custom background to paint behind the web content. This will be tiled |
132 // horizontally. Can be null, in which case we fall back to painting white. | 132 // horizontally. Can be null, in which case we fall back to painting white. |
133 SkBitmap background_; | 133 SkBitmap background_; |
134 | 134 |
135 // While the mouse is locked, the cursor is hidden from the user. Mouse events | 135 // While the mouse is locked, the cursor is hidden from the user. Mouse events |
136 // are still generated. However, the position they report is the last known | 136 // are still generated. However, the position they report is the last known |
137 // mouse position just as mouse lock was entered; the movement they report | 137 // mouse position just as mouse lock was entered; the movement they report |
138 // indicates what the change in position of the mouse would be had it not been | 138 // indicates what the change in position of the mouse would be had it not been |
139 // locked. | 139 // locked. |
(...skipping 23 matching lines...) Expand all Loading... |
163 gfx::Rect current_display_area_; | 163 gfx::Rect current_display_area_; |
164 | 164 |
165 uint32 renderer_frame_number_; | 165 uint32 renderer_frame_number_; |
166 | 166 |
167 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 167 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
168 }; | 168 }; |
169 | 169 |
170 } // namespace content | 170 } // namespace content |
171 | 171 |
172 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 172 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
OLD | NEW |