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

Side by Side Diff: content/browser/tab_contents/tab_contents_delegate.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_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 312
313 // Request to enumerate a directory. This is equivalent to running the file 313 // Request to enumerate a directory. This is equivalent to running the file
314 // chooser in directory-enumeration mode and having the user select the given 314 // chooser in directory-enumeration mode and having the user select the given
315 // directory. 315 // directory.
316 virtual void EnumerateDirectory(TabContents* tab, int request_id, 316 virtual void EnumerateDirectory(TabContents* tab, int request_id,
317 const FilePath& path); 317 const FilePath& path);
318 318
319 // Called when the renderer puts a tab into or out of fullscreen mode. 319 // Called when the renderer puts a tab into or out of fullscreen mode.
320 virtual void ToggleFullscreenModeForTab(TabContents* tab, 320 virtual void ToggleFullscreenModeForTab(TabContents* tab,
321 bool enter_fullscreen); 321 bool enter_fullscreen);
322 virtual bool IsFullscreenForTab(const TabContents* tab) const;
322 323
323 // Called when a Javascript out of memory notification is received. 324 // Called when a Javascript out of memory notification is received.
324 virtual void JSOutOfMemory(TabContents* tab); 325 virtual void JSOutOfMemory(TabContents* tab);
325 326
326 // Register a new handler for URL requests with the given scheme. 327 // Register a new handler for URL requests with the given scheme.
327 virtual void RegisterProtocolHandler(TabContents* tab, 328 virtual void RegisterProtocolHandler(TabContents* tab,
328 const std::string& protocol, 329 const std::string& protocol,
329 const GURL& url, 330 const GURL& url,
330 const string16& title); 331 const string16& title);
331 332
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 void Attach(TabContents* source); 370 void Attach(TabContents* source);
370 371
371 // Called when |this| is no longer the TabContentsDelegate for |source|. 372 // Called when |this| is no longer the TabContentsDelegate for |source|.
372 void Detach(TabContents* source); 373 void Detach(TabContents* source);
373 374
374 // The TabContents that this is currently a delegate for. 375 // The TabContents that this is currently a delegate for.
375 std::set<TabContents*> attached_contents_; 376 std::set<TabContents*> attached_contents_;
376 }; 377 };
377 378
378 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 379 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/tab_contents/tab_contents.cc ('k') | content/browser/tab_contents/tab_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698