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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 | 293 |
296 virtual bool LockMouse() OVERRIDE; | 294 virtual bool LockMouse() OVERRIDE; |
297 virtual void UnlockMouse() OVERRIDE; | 295 virtual void UnlockMouse() OVERRIDE; |
298 | 296 |
jam
2012/03/22 17:15:41
nit: no need for blank line between overridden fun
Jói
2012/03/22 17:39:58
Done.
| |
297 virtual void UnhandledWheelEvent( | |
298 const WebKit::WebMouseWheelEvent& event) OVERRIDE; | |
299 | |
299 void KillSelf(); | 300 void KillSelf(); |
300 | 301 |
301 void SetTextInputActive(bool active); | 302 void SetTextInputActive(bool active); |
302 | 303 |
303 // Sends completed plugin IME notification and text back to the renderer. | 304 // Sends completed plugin IME notification and text back to the renderer. |
304 void PluginImeCompositionCompleted(const string16& text, int plugin_id); | 305 void PluginImeCompositionCompleted(const string16& text, int plugin_id); |
305 | 306 |
306 const std::string& selected_text() const { return selected_text_; } | 307 const std::string& selected_text() const { return selected_text_; } |
307 | 308 |
308 void UpdateRootGpuViewVisibility(bool show_gpu_widget); | 309 void UpdateRootGpuViewVisibility(bool show_gpu_widget); |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
408 // hidden until the software backing store has been updated. This variable is | 409 // 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. | 410 // set when the gpu widget needs to be hidden once a paint is completed. |
410 bool needs_gpu_visibility_update_after_repaint_; | 411 bool needs_gpu_visibility_update_after_repaint_; |
411 | 412 |
412 gfx::PluginWindowHandle compositing_surface_; | 413 gfx::PluginWindowHandle compositing_surface_; |
413 | 414 |
414 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 415 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
415 }; | 416 }; |
416 | 417 |
417 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 418 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
OLD | NEW |