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

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

Issue 1836943002: DevTools: request app banner from DevTools without #enable-add-to-shelf flag while emulating. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 WebContents* web_contents, 524 WebContents* web_contents,
525 int cert_id); 525 int cert_id);
526 526
527 // Called when the active render widget is forwarding a RemoteChannel 527 // Called when the active render widget is forwarding a RemoteChannel
528 // compositor proto. This is used in Blimp mode. 528 // compositor proto. This is used in Blimp mode.
529 virtual void ForwardCompositorProto( 529 virtual void ForwardCompositorProto(
530 RenderWidgetHost* render_widget_host, 530 RenderWidgetHost* render_widget_host,
531 const std::vector<uint8_t>& proto) {} 531 const std::vector<uint8_t>& proto) {}
532 532
533 // Requests the app banner. This method is called from the DevTools. 533 // Requests the app banner. This method is called from the DevTools.
534 virtual bool RequestAppBanner(content::WebContents* web_contents); 534 virtual void RequestAppBannerFromDevTools(content::WebContents* web_contents);
535 535
536 protected: 536 protected:
537 virtual ~WebContentsDelegate(); 537 virtual ~WebContentsDelegate();
538 538
539 private: 539 private:
540 friend class WebContentsImpl; 540 friend class WebContentsImpl;
541 541
542 // Called when |this| becomes the WebContentsDelegate for |source|. 542 // Called when |this| becomes the WebContentsDelegate for |source|.
543 void Attach(WebContents* source); 543 void Attach(WebContents* source);
544 544
545 // Called when |this| is no longer the WebContentsDelegate for |source|. 545 // Called when |this| is no longer the WebContentsDelegate for |source|.
546 void Detach(WebContents* source); 546 void Detach(WebContents* source);
547 547
548 // The WebContents that this is currently a delegate for. 548 // The WebContents that this is currently a delegate for.
549 std::set<WebContents*> attached_contents_; 549 std::set<WebContents*> attached_contents_;
550 }; 550 };
551 551
552 } // namespace content 552 } // namespace content
553 553
554 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 554 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/devtools/protocol/page_handler.cc ('k') | content/public/browser/web_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698