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

Side by Side Diff: chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc

Issue 43077: Add a GDK_COLOR_RGB macro for constructing GdkColors. (Closed)
Patch Set: Merge to trunk Created 11 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
« no previous file with comments | « base/gfx/gtk_util.h ('k') | chrome/browser/autocomplete/autocomplete_popup_view_gtk.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/autocomplete/autocomplete_edit_view_gtk.h" 5 #include "chrome/browser/autocomplete/autocomplete_edit_view_gtk.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include "base/gfx/gtk_util.h"
9 #include "base/logging.h" 10 #include "base/logging.h"
10 #include "base/string_util.h" 11 #include "base/string_util.h"
11 #include "chrome/browser/autocomplete/autocomplete_edit.h" 12 #include "chrome/browser/autocomplete/autocomplete_edit.h"
12 #include "chrome/browser/autocomplete/autocomplete_popup_model.h" 13 #include "chrome/browser/autocomplete/autocomplete_popup_model.h"
13 #include "chrome/browser/autocomplete/autocomplete_popup_view_gtk.h" 14 #include "chrome/browser/autocomplete/autocomplete_popup_view_gtk.h"
14 #include "chrome/browser/tab_contents/tab_contents.h" 15 #include "chrome/browser/tab_contents/tab_contents.h"
15 #include "chrome/browser/toolbar_model.h" 16 #include "chrome/browser/toolbar_model.h"
16 #include "chrome/common/notification_service.h" 17 #include "chrome/common/notification_service.h"
17 #include "googleurl/src/gurl.h" 18 #include "googleurl/src/gurl.h"
18 19
19 namespace { 20 namespace {
20 21
21 const char kTextBaseColor[] = "#808080"; 22 const char kTextBaseColor[] = "#808080";
22 const char kSecureSchemeColor[] = "#009614"; 23 const char kSecureSchemeColor[] = "#009614";
23 const char kInsecureSchemeColor[] = "#009614"; 24 const char kInsecureSchemeColor[] = "#009614";
24 const GdkColor kSecureBackgroundColor = {0, 65535, 62965, 50115}; // #fff5c3 25 const GdkColor kSecureBackgroundColor = GDK_COLOR_RGB(0xff, 0xf5, 0xc3);
25 const GdkColor kInsecureBackgroundColor = {0, 65535, 65535, 65535}; // #ffffff 26 const GdkColor kInsecureBackgroundColor = GDK_COLOR_RGB(0xff, 0xff, 0xff);
26 27
27 } // namespace 28 } // namespace
28 29
29 AutocompleteEditViewGtk::AutocompleteEditViewGtk( 30 AutocompleteEditViewGtk::AutocompleteEditViewGtk(
30 AutocompleteEditController* controller, 31 AutocompleteEditController* controller,
31 ToolbarModel* toolbar_model, 32 ToolbarModel* toolbar_model,
32 Profile* profile, 33 Profile* profile,
33 CommandUpdater* command_updater) 34 CommandUpdater* command_updater)
34 : text_view_(NULL), 35 : text_view_(NULL),
35 tag_table_(NULL), 36 tag_table_(NULL),
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 &start, &end); 479 &start, &end);
479 } 480 }
480 gtk_widget_modify_base(text_view_, GTK_STATE_NORMAL, background); 481 gtk_widget_modify_base(text_view_, GTK_STATE_NORMAL, background);
481 } 482 }
482 } 483 }
483 484
484 void AutocompleteEditViewGtk::TextChanged() { 485 void AutocompleteEditViewGtk::TextChanged() {
485 EmphasizeURLComponents(); 486 EmphasizeURLComponents();
486 controller_->OnChanged(); 487 controller_->OnChanged();
487 } 488 }
OLDNEW
« no previous file with comments | « base/gfx/gtk_util.h ('k') | chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698