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

Side by Side Diff: content/public/browser/web_contents_delegate.h

Issue 9702055: Automated tests for full screen & mouse lock M16 features (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: FileURL & BrowserTest compilation fixes Created 8 years, 9 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) 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_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 // Request to enumerate a directory. This is equivalent to running the file 317 // Request to enumerate a directory. This is equivalent to running the file
318 // chooser in directory-enumeration mode and having the user select the given 318 // chooser in directory-enumeration mode and having the user select the given
319 // directory. 319 // directory.
320 virtual void EnumerateDirectory(WebContents* tab, 320 virtual void EnumerateDirectory(WebContents* tab,
321 int request_id, 321 int request_id,
322 const FilePath& path) {} 322 const FilePath& path) {}
323 323
324 // Called when the renderer puts a tab into or out of fullscreen mode. 324 // Called when the renderer puts a tab into or out of fullscreen mode.
325 virtual void ToggleFullscreenModeForTab(WebContents* tab, 325 virtual void ToggleFullscreenModeForTab(WebContents* tab,
326 bool enter_fullscreen) {} 326 bool enter_fullscreen) {}
327 virtual bool IsFullscreenForTab(const WebContents* tab) const; 327 virtual bool IsFullscreenForTabOrPending(const WebContents* tab) const;
328 328
329 // Called when a Javascript out of memory notification is received. 329 // Called when a Javascript out of memory notification is received.
330 virtual void JSOutOfMemory(WebContents* tab) {} 330 virtual void JSOutOfMemory(WebContents* tab) {}
331 331
332 // Register a new handler for URL requests with the given scheme. 332 // Register a new handler for URL requests with the given scheme.
333 virtual void RegisterProtocolHandler(WebContents* tab, 333 virtual void RegisterProtocolHandler(WebContents* tab,
334 const std::string& protocol, 334 const std::string& protocol,
335 const GURL& url, 335 const GURL& url,
336 const string16& title) {} 336 const string16& title) {}
337 337
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 // Called when |this| is no longer the WebContentsDelegate for |source|. 395 // Called when |this| is no longer the WebContentsDelegate for |source|.
396 void Detach(WebContents* source); 396 void Detach(WebContents* source);
397 397
398 // The WebContents that this is currently a delegate for. 398 // The WebContents that this is currently a delegate for.
399 std::set<WebContents*> attached_contents_; 399 std::set<WebContents*> attached_contents_;
400 }; 400 };
401 401
402 } // namespace content 402 } // namespace content
403 403
404 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 404 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698