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

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

Issue 159521: Implementation of the page info dialog on Linux Gtk. (Closed)
Patch Set: Fix build Created 11 years, 4 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 | « chrome/browser/gtk/browser_window_gtk.cc ('k') | chrome/browser/gtk/location_bar_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 #ifndef CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_ 5 #ifndef CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_
6 #define CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_ 6 #define CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // Translation between a security level and the background color. Both the 80 // Translation between a security level and the background color. Both the
81 // location bar and edit have to manage and match the background color. 81 // location bar and edit have to manage and match the background color.
82 static const GdkColor kBackgroundColorByLevel[3]; 82 static const GdkColor kBackgroundColorByLevel[3];
83 83
84 private: 84 private:
85 static gboolean HandleExposeThunk(GtkWidget* widget, GdkEventExpose* event, 85 static gboolean HandleExposeThunk(GtkWidget* widget, GdkEventExpose* event,
86 gpointer userdata) { 86 gpointer userdata) {
87 return reinterpret_cast<LocationBarViewGtk*>(userdata)-> 87 return reinterpret_cast<LocationBarViewGtk*>(userdata)->
88 HandleExpose(widget, event); 88 HandleExpose(widget, event);
89 } 89 }
90
90 gboolean HandleExpose(GtkWidget* widget, GdkEventExpose* event); 91 gboolean HandleExpose(GtkWidget* widget, GdkEventExpose* event);
91 92
93 static gboolean OnSecurityIconPressed(GtkWidget* sender,
94 GdkEventButton* event,
95 LocationBarViewGtk* location_bar);
96
92 // Set the SSL icon we should be showing. 97 // Set the SSL icon we should be showing.
93 void SetSecurityIcon(ToolbarModel::Icon icon); 98 void SetSecurityIcon(ToolbarModel::Icon icon);
94 99
95 // Sets the text that should be displayed in the info label and its associated 100 // Sets the text that should be displayed in the info label and its associated
96 // tooltip text. Call with an empty string if the info label should be 101 // tooltip text. Call with an empty string if the info label should be
97 // hidden. 102 // hidden.
98 void SetInfoText(); 103 void SetInfoText();
99 104
100 // Set the keyword text for the Search BLAH: keyword box. 105 // Set the keyword text for the Search BLAH: keyword box.
101 void SetKeywordLabel(const std::wstring& keyword); 106 void SetKeywordLabel(const std::wstring& keyword);
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 ScopedRunnableMethodFactory<LocationBarViewGtk> first_run_bubble_; 152 ScopedRunnableMethodFactory<LocationBarViewGtk> first_run_bubble_;
148 153
149 // When true, the location bar view is read only and also is has a slightly 154 // When true, the location bar view is read only and also is has a slightly
150 // different presentation (font size / color). This is used for popups. 155 // different presentation (font size / color). This is used for popups.
151 bool popup_window_mode_; 156 bool popup_window_mode_;
152 157
153 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); 158 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk);
154 }; 159 };
155 160
156 #endif // CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_ 161 #endif // CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/browser_window_gtk.cc ('k') | chrome/browser/gtk/location_bar_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698