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

Unified Diff: chrome/browser/ui/app_list/start_page_service.h

Issue 863603003: Keep the app list start page isolated from the browser's default zoom. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Formatting Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/start_page_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/app_list/start_page_service.h
diff --git a/chrome/browser/ui/app_list/start_page_service.h b/chrome/browser/ui/app_list/start_page_service.h
index 3c56030be3f11f9df5444adb2afeb19212d1d0fb..3792b6da64dc016c314a98874cfda0499cb4d443 100644
--- a/chrome/browser/ui/app_list/start_page_service.h
+++ b/chrome/browser/ui/app_list/start_page_service.h
@@ -20,9 +20,12 @@
#include "chrome/browser/ui/app_list/speech_recognizer_delegate.h"
#include "components/keyed_service/core/keyed_service.h"
#include "content/public/browser/web_contents.h"
+#include "content/public/browser/web_contents_observer.h"
#include "ui/app_list/speech_ui_model_observer.h"
namespace content {
+struct FrameNavigateParams;
+struct LoadCommittedDetails;
struct SpeechRecognitionSessionPreamble;
}
@@ -42,6 +45,7 @@ class StartPageObserver;
// StartPageService collects data to be displayed in app list's start page
// and hosts the start page contents.
class StartPageService : public KeyedService,
+ public content::WebContentsObserver,
public SpeechRecognizerDelegate {
public:
typedef std::vector<scoped_refptr<const extensions::Extension> >
@@ -113,6 +117,11 @@ class StartPageService : public KeyedService,
// KeyedService overrides:
void Shutdown() override;
+ // contents::WebContentsObserver overrides;
+ void DidNavigateMainFrame(
+ const content::LoadCommittedDetails& details,
+ const content::FrameNavigateParams& params) override;
+
// Change the known microphone availability. |available| should be true if
// the microphone exists and is available for use.
void OnMicrophoneChanged(bool available);
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/start_page_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698