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

Side by Side Diff: chrome/browser/ui/libgtkui/native_theme_gtk2.cc

Issue 2449243002: Gtk3 ui: Add libgtk3ui as a separate build component (Closed)
Patch Set: Add theme_properties dep to //chrome/browser/ui Created 4 years, 1 month 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #include "chrome/browser/ui/libgtk2ui/native_theme_gtk2.h" 5 #include "chrome/browser/ui/libgtkui/native_theme_gtk2.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include "chrome/browser/ui/libgtk2ui/chrome_gtk_frame.h" 9 #include "chrome/browser/ui/libgtkui/chrome_gtk_frame.h"
10 #include "chrome/browser/ui/libgtk2ui/chrome_gtk_menu_subclasses.h" 10 #include "chrome/browser/ui/libgtkui/chrome_gtk_menu_subclasses.h"
11 #include "chrome/browser/ui/libgtk2ui/gtk2_ui.h" 11 #include "chrome/browser/ui/libgtkui/gtk2_ui.h"
12 #include "chrome/browser/ui/libgtk2ui/gtk2_util.h" 12 #include "chrome/browser/ui/libgtkui/gtk2_util.h"
13 #include "chrome/browser/ui/libgtk2ui/skia_utils_gtk2.h" 13 #include "chrome/browser/ui/libgtkui/skia_utils_gtk2.h"
14 #include "third_party/skia/include/core/SkColor.h" 14 #include "third_party/skia/include/core/SkColor.h"
15 #include "ui/gfx/color_palette.h" 15 #include "ui/gfx/color_palette.h"
16 #include "ui/gfx/color_utils.h" 16 #include "ui/gfx/color_utils.h"
17 #include "ui/gfx/geometry/rect.h" 17 #include "ui/gfx/geometry/rect.h"
18 #include "ui/gfx/geometry/size.h" 18 #include "ui/gfx/geometry/size.h"
19 #include "ui/gfx/path.h" 19 #include "ui/gfx/path.h"
20 #include "ui/gfx/skia_util.h" 20 #include "ui/gfx/skia_util.h"
21 #include "ui/native_theme/common_theme.h" 21 #include "ui/native_theme/common_theme.h"
22 #include "ui/native_theme/native_theme_aura.h" 22 #include "ui/native_theme/native_theme_aura.h"
23 #include "ui/native_theme/native_theme_dark_aura.h" 23 #include "ui/native_theme/native_theme_dark_aura.h"
24 24
25 namespace libgtk2ui { 25 namespace libgtkui {
26 26
27 namespace { 27 namespace {
28 28
29 // Theme colors returned by GetSystemColor(). 29 // Theme colors returned by GetSystemColor().
30 const SkColor kInvalidColorIdColor = SkColorSetRGB(255, 0, 128); 30 const SkColor kInvalidColorIdColor = SkColorSetRGB(255, 0, 128);
31 const SkColor kURLTextColor = SkColorSetRGB(0x0b, 0x80, 0x43); 31 const SkColor kURLTextColor = SkColorSetRGB(0x0b, 0x80, 0x43);
32 32
33 // Generates the normal URL color, a green color used in unhighlighted URL 33 // Generates the normal URL color, a green color used in unhighlighted URL
34 // text. It is a mix of |kURLTextColor| and the current text color. Unlike the 34 // text. It is a mix of |kURLTextColor| and the current text color. Unlike the
35 // selected text color, it is more important to match the qualities of the 35 // selected text color, it is more important to match the qualities of the
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 static GtkWidget* fake_menu_item = NULL; 564 static GtkWidget* fake_menu_item = NULL;
565 565
566 if (!fake_menu_item) { 566 if (!fake_menu_item) {
567 fake_menu_item = gtk_custom_menu_item_new(); 567 fake_menu_item = gtk_custom_menu_item_new();
568 gtk_menu_shell_append(GTK_MENU_SHELL(GetMenu()), fake_menu_item); 568 gtk_menu_shell_append(GTK_MENU_SHELL(GetMenu()), fake_menu_item);
569 } 569 }
570 570
571 return fake_menu_item; 571 return fake_menu_item;
572 } 572 }
573 573
574 } // namespace libgtk2ui 574 } // namespace libgtkui
OLDNEW
« no previous file with comments | « chrome/browser/ui/libgtkui/native_theme_gtk2.h ('k') | chrome/browser/ui/libgtkui/print_dialog_gtk2.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698