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

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

Issue 1569893003: Add "Request app banner" context menu in DevTools (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated pfeldman's comment Created 4 years, 11 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 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 516
517 // Displays platform-specific (OS) dialog with the certificate details. 517 // Displays platform-specific (OS) dialog with the certificate details.
518 virtual void ShowCertificateViewerInDevTools( 518 virtual void ShowCertificateViewerInDevTools(
519 WebContents* web_contents, 519 WebContents* web_contents,
520 int cert_id); 520 int cert_id);
521 521
522 // Called when the active render widget is forwarding a RemoteChannel 522 // Called when the active render widget is forwarding a RemoteChannel
523 // compositor proto. This is used in Blimp mode. 523 // compositor proto. This is used in Blimp mode.
524 virtual void ForwardCompositorProto(const std::vector<uint8_t>& proto) {} 524 virtual void ForwardCompositorProto(const std::vector<uint8_t>& proto) {}
525 525
526 // Requests the app banner. This method is called from the DevTools.
527 virtual bool RequestAppBanner(content::WebContents* web_contents);
528
526 protected: 529 protected:
527 virtual ~WebContentsDelegate(); 530 virtual ~WebContentsDelegate();
528 531
529 private: 532 private:
530 friend class WebContentsImpl; 533 friend class WebContentsImpl;
531 534
532 // Called when |this| becomes the WebContentsDelegate for |source|. 535 // Called when |this| becomes the WebContentsDelegate for |source|.
533 void Attach(WebContents* source); 536 void Attach(WebContents* source);
534 537
535 // Called when |this| is no longer the WebContentsDelegate for |source|. 538 // Called when |this| is no longer the WebContentsDelegate for |source|.
536 void Detach(WebContents* source); 539 void Detach(WebContents* source);
537 540
538 // The WebContents that this is currently a delegate for. 541 // The WebContents that this is currently a delegate for.
539 std::set<WebContents*> attached_contents_; 542 std::set<WebContents*> attached_contents_;
540 }; 543 };
541 544
542 } // namespace content 545 } // namespace content
543 546
544 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 547 #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