| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |