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

Unified Diff: chrome/browser/themes/theme_service.h

Issue 1906563002: [WIP] Fire a theme changed notification when device scan completes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Recalculate tab and new tab button sizes 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/themes/theme_service.cc » ('j') | chrome/browser/ui/views/tabs/tab_strip.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/themes/theme_service.h
diff --git a/chrome/browser/themes/theme_service.h b/chrome/browser/themes/theme_service.h
index d8e02262b2cd2f37e4adc6f59b65403a0894882e..4ea0b7ff90ba9cb9844475761b1d18996231bff2 100644
--- a/chrome/browser/themes/theme_service.h
+++ b/chrome/browser/themes/theme_service.h
@@ -21,6 +21,7 @@
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
#include "ui/base/theme_provider.h"
+#include "ui/events/devices/input_device_event_observer.h"
class CustomThemeSupplier;
class BrowserThemePack;
@@ -60,6 +61,7 @@ extern "C" NSString* const kBrowserThemeDidChangeNotification;
class ThemeService : public base::NonThreadSafe,
public content::NotificationObserver,
+ public ui::InputDeviceEventObserver,
public KeyedService {
public:
// Public constants used in ThemeService and its subclasses:
@@ -78,6 +80,9 @@ class ThemeService : public base::NonThreadSafe,
const content::NotificationSource& source,
const content::NotificationDetails& details) override;
+ // ui::InputDeviceEventObserver:
+ void OnDeviceListsComplete() override;
+
// Set the current theme to the theme defined in |extension|.
// |extension| must already be added to this profile's
// ExtensionService.
« no previous file with comments | « no previous file | chrome/browser/themes/theme_service.cc » ('j') | chrome/browser/ui/views/tabs/tab_strip.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698