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

Unified Diff: chrome/browser/chromeos/login/simple_web_view_dialog.h

Issue 10413061: Make PageInfoBubble not use BrowserList::GetLastActive and instead obtain a navigator at creation t… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/simple_web_view_dialog.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/simple_web_view_dialog.h
===================================================================
--- chrome/browser/chromeos/login/simple_web_view_dialog.h (revision 138673)
+++ chrome/browser/chromeos/login/simple_web_view_dialog.h (working copy)
@@ -11,6 +11,7 @@
#include "chrome/browser/command_updater.h"
#include "chrome/browser/ui/toolbar/toolbar_model_delegate.h"
#include "chrome/browser/ui/views/location_bar/location_bar_view.h"
+#include "content/public/browser/page_navigator.h"
#include "content/public/browser/web_contents_delegate.h"
#include "googleurl/src/gurl.h"
#include "ui/views/controls/button/image_button.h"
@@ -40,6 +41,7 @@
public LocationBarView::Delegate,
public ToolbarModelDelegate,
public CommandUpdater::CommandUpdaterDelegate,
+ public content::PageNavigator,
public content::WebContentsDelegate {
public:
explicit SimpleWebViewDialog(Profile* profile);
@@ -59,6 +61,10 @@
virtual void ButtonPressed(views::Button* sender,
const views::Event& event) OVERRIDE;
+ // Implements content::PageNavigator:
+ virtual content::WebContents* OpenURL(
+ const content::OpenURLParams& params) OVERRIDE;
+
// Implements content::WebContentsDelegate:
virtual void LoadingStateChanged(content::WebContents* source) OVERRIDE;
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/simple_web_view_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698