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

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

Issue 1159113006: [Android] A prototype of the interactive media notification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed tests and Min's nits Created 5 years, 5 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 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 int active_match_ordinal, 398 int active_match_ordinal,
399 bool final_update) {} 399 bool final_update) {}
400 400
401 #if defined(OS_ANDROID) 401 #if defined(OS_ANDROID)
402 // Provides the rects of the current find-in-page matches. 402 // Provides the rects of the current find-in-page matches.
403 // Sent as a reply to RequestFindMatchRects. 403 // Sent as a reply to RequestFindMatchRects.
404 virtual void FindMatchRectsReply(WebContents* web_contents, 404 virtual void FindMatchRectsReply(WebContents* web_contents,
405 int version, 405 int version,
406 const std::vector<gfx::RectF>& rects, 406 const std::vector<gfx::RectF>& rects,
407 const gfx::RectF& active_rect) {} 407 const gfx::RectF& active_rect) {}
408
409 // Notifies the tab that the state relevant to the media controls has changed.
410 virtual void UpdateMediaControls(WebContents* web_contents) {}
Ted C 2015/06/26 00:43:55 Why does this exist here? WebContentsObserver alr
whywhat 2015/06/26 19:29:32 So these methods are only used for Chromecast as f
Ted C 2015/06/30 04:56:13 The problem I have with it being in both WebConten
408 #endif 411 #endif
409 412
410 // Invoked when the preferred size of the contents has been changed. 413 // Invoked when the preferred size of the contents has been changed.
411 virtual void UpdatePreferredSize(WebContents* web_contents, 414 virtual void UpdatePreferredSize(WebContents* web_contents,
412 const gfx::Size& pref_size) {} 415 const gfx::Size& pref_size) {}
413 416
414 // Invoked when the contents auto-resized and the container should match it. 417 // Invoked when the contents auto-resized and the container should match it.
415 virtual void ResizeDueToAutoResize(WebContents* web_contents, 418 virtual void ResizeDueToAutoResize(WebContents* web_contents,
416 const gfx::Size& new_size) {} 419 const gfx::Size& new_size) {}
417 420
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 // Called when |this| is no longer the WebContentsDelegate for |source|. 510 // Called when |this| is no longer the WebContentsDelegate for |source|.
508 void Detach(WebContents* source); 511 void Detach(WebContents* source);
509 512
510 // The WebContents that this is currently a delegate for. 513 // The WebContents that this is currently a delegate for.
511 std::set<WebContents*> attached_contents_; 514 std::set<WebContents*> attached_contents_;
512 }; 515 };
513 516
514 } // namespace content 517 } // namespace content
515 518
516 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 519 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW
« chrome/android/shell/java/AndroidManifest.xml.jinja2 ('K') | « content/public/browser/web_contents.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698