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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 10443045: Silent mouse lock after unlock by target (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Update for silent mouse relock Created 8 years, 6 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
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_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/gtest_prod_util.h" 13 #include "base/gtest_prod_util.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/observer_list.h" 15 #include "base/observer_list.h"
16 #include "base/property_bag.h" 16 #include "base/property_bag.h"
17 #include "content/browser/browser_plugin/browser_plugin_host.h" 17 #include "content/browser/browser_plugin/browser_plugin_host.h"
18 #include "content/browser/renderer_host/java/java_bridge_dispatcher_host_manager .h" 18 #include "content/browser/renderer_host/java/java_bridge_dispatcher_host_manager .h"
19 #include "content/browser/renderer_host/render_view_host_delegate.h" 19 #include "content/browser/renderer_host/render_view_host_delegate.h"
20 #include "content/browser/renderer_host/render_widget_host_delegate.h" 20 #include "content/browser/renderer_host/render_widget_host_delegate.h"
21 #include "content/browser/web_contents/navigation_controller_impl.h" 21 #include "content/browser/web_contents/navigation_controller_impl.h"
22 #include "content/browser/web_contents/render_view_host_manager.h" 22 #include "content/browser/web_contents/render_view_host_manager.h"
23 #include "content/common/content_export.h" 23 #include "content/common/content_export.h"
24 #include "content/common/mouse_lock.h"
24 #include "content/public/browser/notification_observer.h" 25 #include "content/public/browser/notification_observer.h"
25 #include "content/public/browser/notification_registrar.h" 26 #include "content/public/browser/notification_registrar.h"
26 #include "content/public/browser/web_contents.h" 27 #include "content/public/browser/web_contents.h"
27 #include "content/public/common/renderer_preferences.h" 28 #include "content/public/common/renderer_preferences.h"
28 #include "net/base/load_states.h" 29 #include "net/base/load_states.h"
29 #include "ui/gfx/size.h" 30 #include "ui/gfx/size.h"
30 #include "webkit/glue/resource_type.h" 31 #include "webkit/glue/resource_type.h"
31 32
32 #if defined(OS_WIN) 33 #if defined(OS_WIN)
33 #include "base/win/scoped_handle.h" 34 #include "base/win/scoped_handle.h"
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 virtual void HandleMouseDown() OVERRIDE; 362 virtual void HandleMouseDown() OVERRIDE;
362 virtual void HandleMouseUp() OVERRIDE; 363 virtual void HandleMouseUp() OVERRIDE;
363 virtual void HandleMouseActivate() OVERRIDE; 364 virtual void HandleMouseActivate() OVERRIDE;
364 virtual void RunFileChooser( 365 virtual void RunFileChooser(
365 content::RenderViewHost* render_view_host, 366 content::RenderViewHost* render_view_host,
366 const content::FileChooserParams& params) OVERRIDE; 367 const content::FileChooserParams& params) OVERRIDE;
367 virtual void ToggleFullscreenMode(bool enter_fullscreen) OVERRIDE; 368 virtual void ToggleFullscreenMode(bool enter_fullscreen) OVERRIDE;
368 virtual bool IsFullscreenForCurrentTab() const OVERRIDE; 369 virtual bool IsFullscreenForCurrentTab() const OVERRIDE;
369 virtual void UpdatePreferredSize(const gfx::Size& pref_size) OVERRIDE; 370 virtual void UpdatePreferredSize(const gfx::Size& pref_size) OVERRIDE;
370 virtual void ResizeDueToAutoResize(const gfx::Size& new_size) OVERRIDE; 371 virtual void ResizeDueToAutoResize(const gfx::Size& new_size) OVERRIDE;
371 virtual void RequestToLockMouse(bool user_gesture) OVERRIDE; 372 virtual void RequestToLockMouse(
373 content::MouseLockSource lock_source,
374 content::MouseUnlockSource previous_unlock_source) OVERRIDE;
372 virtual void LostMouseLock() OVERRIDE; 375 virtual void LostMouseLock() OVERRIDE;
373 virtual void CreateNewWindow( 376 virtual void CreateNewWindow(
374 int route_id, 377 int route_id,
375 const ViewHostMsg_CreateWindow_Params& params) OVERRIDE; 378 const ViewHostMsg_CreateWindow_Params& params) OVERRIDE;
376 virtual void CreateNewWidget(int route_id, 379 virtual void CreateNewWidget(int route_id,
377 WebKit::WebPopupType popup_type) OVERRIDE; 380 WebKit::WebPopupType popup_type) OVERRIDE;
378 virtual void CreateNewFullscreenWidget(int route_id) OVERRIDE; 381 virtual void CreateNewFullscreenWidget(int route_id) OVERRIDE;
379 virtual void ShowCreatedWindow(int route_id, 382 virtual void ShowCreatedWindow(int route_id,
380 WindowOpenDisposition disposition, 383 WindowOpenDisposition disposition,
381 const gfx::Rect& initial_pos, 384 const gfx::Rect& initial_pos,
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 content::ColorChooser* color_chooser_; 792 content::ColorChooser* color_chooser_;
790 793
791 // This must be at the end, or else we might get notifications and use other 794 // This must be at the end, or else we might get notifications and use other
792 // member variables that are gone. 795 // member variables that are gone.
793 content::NotificationRegistrar registrar_; 796 content::NotificationRegistrar registrar_;
794 797
795 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 798 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
796 }; 799 };
797 800
798 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 801 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698