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

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

Issue 14139013: Hide location bar on Javascript-initiated scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 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_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 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 virtual void EnumerateDirectory(WebContents* web_contents, 337 virtual void EnumerateDirectory(WebContents* web_contents,
338 int request_id, 338 int request_id,
339 const base::FilePath& path) {} 339 const base::FilePath& path) {}
340 340
341 // Called when the renderer puts a tab into or out of fullscreen mode. 341 // Called when the renderer puts a tab into or out of fullscreen mode.
342 virtual void ToggleFullscreenModeForTab(WebContents* web_contents, 342 virtual void ToggleFullscreenModeForTab(WebContents* web_contents,
343 bool enter_fullscreen) {} 343 bool enter_fullscreen) {}
344 virtual bool IsFullscreenForTabOrPending( 344 virtual bool IsFullscreenForTabOrPending(
345 const WebContents* web_contents) const; 345 const WebContents* web_contents) const;
346 346
347 // Called when the renderer has scrolled programmatically.
348 virtual void DidProgrammaticallyScroll(WebContents* web_contents,
349 const gfx::Point& scroll_point) {}
350
347 // Called when a Javascript out of memory notification is received. 351 // Called when a Javascript out of memory notification is received.
348 virtual void JSOutOfMemory(WebContents* web_contents) {} 352 virtual void JSOutOfMemory(WebContents* web_contents) {}
349 353
350 // Register a new handler for URL requests with the given scheme. 354 // Register a new handler for URL requests with the given scheme.
351 // |user_gesture| is true if the registration is made in the context of a user 355 // |user_gesture| is true if the registration is made in the context of a user
352 // gesture. 356 // gesture.
353 virtual void RegisterProtocolHandler(WebContents* web_contents, 357 virtual void RegisterProtocolHandler(WebContents* web_contents,
354 const std::string& protocol, 358 const std::string& protocol,
355 const GURL& url, 359 const GURL& url,
356 const string16& title, 360 const string16& title,
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 // Called when |this| is no longer the WebContentsDelegate for |source|. 434 // Called when |this| is no longer the WebContentsDelegate for |source|.
431 void Detach(WebContents* source); 435 void Detach(WebContents* source);
432 436
433 // The WebContents that this is currently a delegate for. 437 // The WebContents that this is currently a delegate for.
434 std::set<WebContents*> attached_contents_; 438 std::set<WebContents*> attached_contents_;
435 }; 439 };
436 440
437 } // namespace content 441 } // namespace content
438 442
439 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 443 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698