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

Side by Side Diff: chrome/browser/renderer_host/render_widget_host_view_mac.h

Issue 7863003: Mouse lock implementation, including the renderer side and the Windows version of the browser side. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/renderer_host/render_widget_host_view_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 6 #define CHROME_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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 306
307 virtual void SetVisuallyDeemphasized(const SkColor* color, bool animate); 307 virtual void SetVisuallyDeemphasized(const SkColor* color, bool animate);
308 308
309 virtual void UnhandledWheelEvent( 309 virtual void UnhandledWheelEvent(
310 const WebKit::WebMouseWheelEvent& event) OVERRIDE; 310 const WebKit::WebMouseWheelEvent& event) OVERRIDE;
311 virtual void SetHasHorizontalScrollbar( 311 virtual void SetHasHorizontalScrollbar(
312 bool has_horizontal_scrollbar) OVERRIDE; 312 bool has_horizontal_scrollbar) OVERRIDE;
313 virtual void SetScrollOffsetPinning( 313 virtual void SetScrollOffsetPinning(
314 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; 314 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE;
315 315
316 virtual bool LockMouse() OVERRIDE;
317 virtual void UnlockMouse() OVERRIDE;
318
316 void KillSelf(); 319 void KillSelf();
317 320
318 void SetTextInputActive(bool active); 321 void SetTextInputActive(bool active);
319 322
320 // Sends completed plugin IME notification and text back to the renderer. 323 // Sends completed plugin IME notification and text back to the renderer.
321 void PluginImeCompositionCompleted(const string16& text, int plugin_id); 324 void PluginImeCompositionCompleted(const string16& text, int plugin_id);
322 325
323 const std::string& selected_text() const { return selected_text_; } 326 const std::string& selected_text() const { return selected_text_; }
324 327
325 void UpdateRootGpuViewVisibility(bool show_gpu_widget); 328 void UpdateRootGpuViewVisibility(bool show_gpu_widget);
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 // hidden until the software backing store has been updated. This variable is 427 // hidden until the software backing store has been updated. This variable is
425 // set when the gpu widget needs to be hidden once a paint is completed. 428 // set when the gpu widget needs to be hidden once a paint is completed.
426 bool needs_gpu_visibility_update_after_repaint_; 429 bool needs_gpu_visibility_update_after_repaint_;
427 430
428 gfx::PluginWindowHandle compositing_surface_; 431 gfx::PluginWindowHandle compositing_surface_;
429 432
430 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); 433 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
431 }; 434 };
432 435
433 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 436 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/renderer_host/render_widget_host_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698