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

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

Issue 9447096: gtk: Rename GtkThemeService to ThemeServiceGtk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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/gtk_tree.cc ('k') | chrome/browser/ui/gtk/gtk_util.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) 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 CHROME_BROWSER_UI_GTK_GTK_UTIL_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_GTK_UTIL_H_
6 #define CHROME_BROWSER_UI_GTK_GTK_UTIL_H_ 6 #define CHROME_BROWSER_UI_GTK_GTK_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/string16.h" 13 #include "base/string16.h"
14 #include "ui/base/x/x11_util.h" 14 #include "ui/base/x/x11_util.h"
15 #include "ui/gfx/point.h" 15 #include "ui/gfx/point.h"
16 #include "ui/gfx/rect.h" 16 #include "ui/gfx/rect.h"
17 #include "webkit/glue/window_open_disposition.h" 17 #include "webkit/glue/window_open_disposition.h"
18 18
19 typedef struct _cairo cairo_t; 19 typedef struct _cairo cairo_t;
20 typedef struct _GdkColor GdkColor; 20 typedef struct _GdkColor GdkColor;
21 typedef struct _GtkWidget GtkWidget; 21 typedef struct _GtkWidget GtkWidget;
22 22
23 class BrowserWindow; 23 class BrowserWindow;
24 class GtkThemeService; 24 class ThemeServiceGtk;
25 class GURL; 25 class GURL;
26 class Profile; 26 class Profile;
27 27
28 namespace content { 28 namespace content {
29 struct RendererPreferences; 29 struct RendererPreferences;
30 } 30 }
31 31
32 namespace event_utils { 32 namespace event_utils {
33 33
34 // Translates GdkEvent state into what kind of disposition they represent. 34 // Translates GdkEvent state into what kind of disposition they represent.
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 220
221 // Set up the text to be displayed by |layout|. 221 // Set up the text to be displayed by |layout|.
222 void SetLayoutText(PangoLayout* layout, const string16& text); 222 void SetLayoutText(PangoLayout* layout, const string16& text);
223 223
224 // Draws the background of the toolbar area subject to the expose rectangle 224 // Draws the background of the toolbar area subject to the expose rectangle
225 // |event| and starting image tiling from |tabstrip_origin|. 225 // |event| and starting image tiling from |tabstrip_origin|.
226 void DrawThemedToolbarBackground(GtkWidget* widget, 226 void DrawThemedToolbarBackground(GtkWidget* widget,
227 cairo_t* cr, 227 cairo_t* cr,
228 GdkEventExpose* event, 228 GdkEventExpose* event,
229 const gfx::Point& tabstrip_origin, 229 const gfx::Point& tabstrip_origin,
230 GtkThemeService* provider); 230 ThemeServiceGtk* provider);
231 231
232 // Returns the two colors averaged together. 232 // Returns the two colors averaged together.
233 GdkColor AverageColors(GdkColor color_one, GdkColor color_two); 233 GdkColor AverageColors(GdkColor color_one, GdkColor color_two);
234 234
235 // Show the image for the given menu item, even if the user's default is to not 235 // Show the image for the given menu item, even if the user's default is to not
236 // show images. Only to be used for favicons or other menus where the image is 236 // show images. Only to be used for favicons or other menus where the image is
237 // crucial to its functionality. 237 // crucial to its functionality.
238 void SetAlwaysShowImage(GtkWidget* image_menu_item); 238 void SetAlwaysShowImage(GtkWidget* image_menu_item);
239 239
240 // Get a rectangle corresponding to a widget's allocation relative to its 240 // Get a rectangle corresponding to a widget's allocation relative to its
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 void ApplyMessageDialogQuirks(GtkWidget* dialog); 337 void ApplyMessageDialogQuirks(GtkWidget* dialog);
338 338
339 // Performs Cut/Copy/Paste operation on the |window|. 339 // Performs Cut/Copy/Paste operation on the |window|.
340 void DoCut(BrowserWindow* window); 340 void DoCut(BrowserWindow* window);
341 void DoCopy(BrowserWindow* window); 341 void DoCopy(BrowserWindow* window);
342 void DoPaste(BrowserWindow* window); 342 void DoPaste(BrowserWindow* window);
343 343
344 } // namespace gtk_util 344 } // namespace gtk_util
345 345
346 #endif // CHROME_BROWSER_UI_GTK_GTK_UTIL_H_ 346 #endif // CHROME_BROWSER_UI_GTK_GTK_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/gtk_tree.cc ('k') | chrome/browser/ui/gtk/gtk_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698