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

Side by Side Diff: chrome/browser/ui/gtk/gtk_theme_service.h

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/gtk/global_menu_bar.cc ('k') | chrome/browser/ui/gtk/gtk_theme_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_BROWSER_UI_GTK_GTK_THEME_SERVICE_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_GTK_THEME_SERVICE_H_
6 #define CHROME_BROWSER_UI_GTK_GTK_THEME_SERVICE_H_ 6 #define CHROME_BROWSER_UI_GTK_GTK_THEME_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 virtual SkBitmap* GetBitmapNamed(int id) const; 53 virtual SkBitmap* GetBitmapNamed(int id) const;
54 virtual SkColor GetColor(int id) const; 54 virtual SkColor GetColor(int id) const;
55 virtual bool HasCustomImage(int id) const; 55 virtual bool HasCustomImage(int id) const;
56 virtual void SetTheme(const Extension* extension); 56 virtual void SetTheme(const Extension* extension);
57 virtual void UseDefaultTheme(); 57 virtual void UseDefaultTheme();
58 virtual void SetNativeTheme(); 58 virtual void SetNativeTheme();
59 virtual bool UsingDefaultTheme() const; 59 virtual bool UsingDefaultTheme() const;
60 virtual bool UsingNativeTheme() const; 60 virtual bool UsingNativeTheme() const;
61 61
62 // Overridden from ThemeService, NotificationObserver: 62 // Overridden from ThemeService, NotificationObserver:
63 virtual void Observe(NotificationType type, 63 virtual void Observe(int type,
64 const NotificationSource& source, 64 const NotificationSource& source,
65 const NotificationDetails& details); 65 const NotificationDetails& details);
66 66
67 // Creates a GtkChromeButton instance, registered with this theme provider, 67 // Creates a GtkChromeButton instance, registered with this theme provider,
68 // with a "destroy" signal to remove it from our internal list when it goes 68 // with a "destroy" signal to remove it from our internal list when it goes
69 // away. 69 // away.
70 GtkWidget* BuildChromeButton(); 70 GtkWidget* BuildChromeButton();
71 71
72 // Creates a GtkChromeLinkButton instance. We update its state as theme 72 // Creates a GtkChromeLinkButton instance. We update its state as theme
73 // changes, and listen for its destruction. 73 // changes, and listen for its destruction.
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 315
316 // The default folder icon and default bookmark icon for the GTK theme. 316 // The default folder icon and default bookmark icon for the GTK theme.
317 // These are static because the system can only have one theme at a time. 317 // These are static because the system can only have one theme at a time.
318 // They are cached when they are requested the first time, and cleared when 318 // They are cached when they are requested the first time, and cleared when
319 // the system theme changes. 319 // the system theme changes.
320 static GdkPixbuf* default_folder_icon_; 320 static GdkPixbuf* default_folder_icon_;
321 static GdkPixbuf* default_bookmark_icon_; 321 static GdkPixbuf* default_bookmark_icon_;
322 }; 322 };
323 323
324 #endif // CHROME_BROWSER_UI_GTK_GTK_THEME_SERVICE_H_ 324 #endif // CHROME_BROWSER_UI_GTK_GTK_THEME_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/global_menu_bar.cc ('k') | chrome/browser/ui/gtk/gtk_theme_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698