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_MAC_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
10 | 10 |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 virtual bool HasFocus() const OVERRIDE; | 183 virtual bool HasFocus() const OVERRIDE; |
184 virtual void Show() OVERRIDE; | 184 virtual void Show() OVERRIDE; |
185 virtual void Hide() OVERRIDE; | 185 virtual void Hide() OVERRIDE; |
186 virtual bool IsShowing() OVERRIDE; | 186 virtual bool IsShowing() OVERRIDE; |
187 virtual gfx::Rect GetViewBounds() const OVERRIDE; | 187 virtual gfx::Rect GetViewBounds() const OVERRIDE; |
188 virtual void SetShowingContextMenu(bool showing) OVERRIDE; | 188 virtual void SetShowingContextMenu(bool showing) OVERRIDE; |
189 virtual void SetActive(bool active) OVERRIDE; | 189 virtual void SetActive(bool active) OVERRIDE; |
190 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) OVERRIDE; | 190 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) OVERRIDE; |
191 virtual void SetWindowVisibility(bool visible) OVERRIDE; | 191 virtual void SetWindowVisibility(bool visible) OVERRIDE; |
192 virtual void WindowFrameChanged() OVERRIDE; | 192 virtual void WindowFrameChanged() OVERRIDE; |
193 virtual void UnhandledWheelEvent( | |
194 const WebKit::WebMouseWheelEvent& event) OVERRIDE; | |
195 virtual void SetBackground(const SkBitmap& background) OVERRIDE; | 193 virtual void SetBackground(const SkBitmap& background) OVERRIDE; |
196 virtual bool CopyFromCompositingSurface( | 194 virtual bool CopyFromCompositingSurface( |
197 const gfx::Size& size, | 195 const gfx::Size& size, |
198 skia::PlatformCanvas* output) OVERRIDE; | 196 skia::PlatformCanvas* output) OVERRIDE; |
199 | 197 |
200 // Implementation of RenderWidgetHostViewPort. | 198 // Implementation of RenderWidgetHostViewPort. |
201 virtual void InitAsPopup(content::RenderWidgetHostView* parent_host_view, | 199 virtual void InitAsPopup(content::RenderWidgetHostView* parent_host_view, |
202 const gfx::Rect& pos) OVERRIDE; | 200 const gfx::Rect& pos) OVERRIDE; |
203 virtual void InitAsFullscreen( | 201 virtual void InitAsFullscreen( |
204 content::RenderWidgetHostView* reference_host_view) OVERRIDE; | 202 content::RenderWidgetHostView* reference_host_view) OVERRIDE; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 // Forces the textures associated with any accelerated plugin instances | 283 // Forces the textures associated with any accelerated plugin instances |
286 // to be reloaded. | 284 // to be reloaded. |
287 void ForceTextureReload(); | 285 void ForceTextureReload(); |
288 | 286 |
289 virtual void ProcessTouchAck(WebKit::WebInputEvent::Type type, | 287 virtual void ProcessTouchAck(WebKit::WebInputEvent::Type type, |
290 bool processed) OVERRIDE; | 288 bool processed) OVERRIDE; |
291 virtual void SetHasHorizontalScrollbar( | 289 virtual void SetHasHorizontalScrollbar( |
292 bool has_horizontal_scrollbar) OVERRIDE; | 290 bool has_horizontal_scrollbar) OVERRIDE; |
293 virtual void SetScrollOffsetPinning( | 291 virtual void SetScrollOffsetPinning( |
294 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; | 292 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; |
295 | |
296 virtual bool LockMouse() OVERRIDE; | 293 virtual bool LockMouse() OVERRIDE; |
297 virtual void UnlockMouse() OVERRIDE; | 294 virtual void UnlockMouse() OVERRIDE; |
| 295 virtual void UnhandledWheelEvent( |
| 296 const WebKit::WebMouseWheelEvent& event) OVERRIDE; |
298 | 297 |
299 void KillSelf(); | 298 void KillSelf(); |
300 | 299 |
301 void SetTextInputActive(bool active); | 300 void SetTextInputActive(bool active); |
302 | 301 |
303 // Sends completed plugin IME notification and text back to the renderer. | 302 // Sends completed plugin IME notification and text back to the renderer. |
304 void PluginImeCompositionCompleted(const string16& text, int plugin_id); | 303 void PluginImeCompositionCompleted(const string16& text, int plugin_id); |
305 | 304 |
306 const std::string& selected_text() const { return selected_text_; } | 305 const std::string& selected_text() const { return selected_text_; } |
307 | 306 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 // hidden until the software backing store has been updated. This variable is | 407 // hidden until the software backing store has been updated. This variable is |
409 // set when the gpu widget needs to be hidden once a paint is completed. | 408 // set when the gpu widget needs to be hidden once a paint is completed. |
410 bool needs_gpu_visibility_update_after_repaint_; | 409 bool needs_gpu_visibility_update_after_repaint_; |
411 | 410 |
412 gfx::PluginWindowHandle compositing_surface_; | 411 gfx::PluginWindowHandle compositing_surface_; |
413 | 412 |
414 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 413 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
415 }; | 414 }; |
416 | 415 |
417 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 416 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
OLD | NEW |