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

Side by Side Diff: content/browser/tab_contents/tab_contents.h

Issue 8072011: Only allow to lock the mouse when the tab is in fullscreen mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make changes in response to review comments & sync. Created 9 years, 2 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
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 CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, 721 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
722 bool* is_keyboard_shortcut) OVERRIDE; 722 bool* is_keyboard_shortcut) OVERRIDE;
723 virtual void HandleKeyboardEvent( 723 virtual void HandleKeyboardEvent(
724 const NativeWebKeyboardEvent& event) OVERRIDE; 724 const NativeWebKeyboardEvent& event) OVERRIDE;
725 virtual void HandleMouseUp() OVERRIDE; 725 virtual void HandleMouseUp() OVERRIDE;
726 virtual void HandleMouseActivate() OVERRIDE; 726 virtual void HandleMouseActivate() OVERRIDE;
727 virtual bool OnMessageReceived(const IPC::Message& message); 727 virtual bool OnMessageReceived(const IPC::Message& message);
728 virtual void RunFileChooser(RenderViewHost* render_view_host, 728 virtual void RunFileChooser(RenderViewHost* render_view_host,
729 const ViewHostMsg_RunFileChooser_Params& params); 729 const ViewHostMsg_RunFileChooser_Params& params);
730 virtual void ToggleFullscreenMode(bool enter_fullscreen) OVERRIDE; 730 virtual void ToggleFullscreenMode(bool enter_fullscreen) OVERRIDE;
731 virtual bool IsFullscreenForCurrentTab() const OVERRIDE;
731 virtual void UpdatePreferredSize(const gfx::Size& pref_size) OVERRIDE; 732 virtual void UpdatePreferredSize(const gfx::Size& pref_size) OVERRIDE;
732 733
733 // RenderViewHostManager::Delegate ------------------------------------------- 734 // RenderViewHostManager::Delegate -------------------------------------------
734 735
735 // Blocks/unblocks interaction with renderer process. 736 // Blocks/unblocks interaction with renderer process.
736 void BlockTabContent(bool blocked); 737 void BlockTabContent(bool blocked);
737 738
738 virtual void BeforeUnloadFiredFromRenderManager( 739 virtual void BeforeUnloadFiredFromRenderManager(
739 bool proceed, 740 bool proceed,
740 bool* proceed_to_fire_unload); 741 bool* proceed_to_fire_unload);
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 ObserverList<TabContentsObserver> observers_; 888 ObserverList<TabContentsObserver> observers_;
888 889
889 // Content restrictions, used to disable print/copy etc based on content's 890 // Content restrictions, used to disable print/copy etc based on content's
890 // (full-page plugins for now only) permissions. 891 // (full-page plugins for now only) permissions.
891 int content_restrictions_; 892 int content_restrictions_;
892 893
893 DISALLOW_COPY_AND_ASSIGN(TabContents); 894 DISALLOW_COPY_AND_ASSIGN(TabContents);
894 }; 895 };
895 896
896 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 897 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host.cc ('k') | content/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698