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

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

Issue 3198013: chromeos: Update autocomplete popup colors. (Closed)
Patch Set: add missing include Created 10 years, 3 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_GTK_GTK_UTIL_H_ 5 #ifndef CHROME_BROWSER_GTK_GTK_UTIL_H_
6 #define CHROME_BROWSER_GTK_GTK_UTIL_H_ 6 #define CHROME_BROWSER_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>
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 guint32 XTimeNow(); 274 guint32 XTimeNow();
275 275
276 // Uses the autocomplete controller for |profile| to convert the contents of the 276 // Uses the autocomplete controller for |profile| to convert the contents of the
277 // PRIMARY selection to a parsed URL. Returns true and sets |url| on success, 277 // PRIMARY selection to a parsed URL. Returns true and sets |url| on success,
278 // otherwise returns false. 278 // otherwise returns false.
279 bool URLFromPrimarySelection(Profile* profile, GURL* url); 279 bool URLFromPrimarySelection(Profile* profile, GURL* url);
280 280
281 // Set the colormap of the given window to rgba to allow transparency. 281 // Set the colormap of the given window to rgba to allow transparency.
282 bool AddWindowAlphaChannel(GtkWidget* window); 282 bool AddWindowAlphaChannel(GtkWidget* window);
283 283
284 // Get the default colors for a text entry. Parameters may be NULL.
285 void GetTextColors(GdkColor* normal_base,
286 GdkColor* selected_base,
287 GdkColor* normal_text,
288 GdkColor* selected_text);
289
284 // Wrappers to show a GtkDialog. On Linux, it merely calls gtk_widget_show_all. 290 // Wrappers to show a GtkDialog. On Linux, it merely calls gtk_widget_show_all.
285 // On ChromeOs, it calls ShowNativeDialog which hosts the its vbox 291 // On ChromeOs, it calls ShowNativeDialog which hosts the its vbox
286 // in a view based Window. 292 // in a view based Window.
287 void ShowDialog(GtkWidget* dialog); 293 void ShowDialog(GtkWidget* dialog);
288 void ShowDialogWithLocalizedSize(GtkWidget* dialog, 294 void ShowDialogWithLocalizedSize(GtkWidget* dialog,
289 int width_id, 295 int width_id,
290 int height_id, 296 int height_id,
291 bool resizeable); 297 bool resizeable);
292 void ShowModalDialogWithMinLocalizedWidth(GtkWidget* dialog, 298 void ShowModalDialogWithMinLocalizedWidth(GtkWidget* dialog,
293 int width_id); 299 int width_id);
294 300
295 // Wrapper to present a window. On Linux, it just calls gtk_window_present or 301 // Wrapper to present a window. On Linux, it just calls gtk_window_present or
296 // gtk_window_present_with_time for non-zero timestamp. For ChromeOS, it first 302 // gtk_window_present_with_time for non-zero timestamp. For ChromeOS, it first
297 // finds the host window of the dialog contents and then present it. 303 // finds the host window of the dialog contents and then present it.
298 void PresentWindow(GtkWidget* window, int timestamp); 304 void PresentWindow(GtkWidget* window, int timestamp);
299 305
300 // Get real window for given dialog. On ChromeOS, this gives the native dialog 306 // Get real window for given dialog. On ChromeOS, this gives the native dialog
301 // host window. On Linux, it merely returns the passed in dialog. 307 // host window. On Linux, it merely returns the passed in dialog.
302 GtkWindow* GetDialogWindow(GtkWidget* dialog); 308 GtkWindow* GetDialogWindow(GtkWidget* dialog);
303 309
304 // Gets dialog window bounds. 310 // Gets dialog window bounds.
305 gfx::Rect GetDialogBounds(GtkWidget* dialog); 311 gfx::Rect GetDialogBounds(GtkWidget* dialog);
306 312
307 } // namespace gtk_util 313 } // namespace gtk_util
308 314
309 #endif // CHROME_BROWSER_GTK_GTK_UTIL_H_ 315 #endif // CHROME_BROWSER_GTK_GTK_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc ('k') | chrome/browser/gtk/gtk_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698