| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 virtual void ShowFirstRunBubble(); | 64 virtual void ShowFirstRunBubble(); |
| 65 virtual std::wstring GetInputString() const; | 65 virtual std::wstring GetInputString() const; |
| 66 virtual WindowOpenDisposition GetWindowOpenDisposition() const; | 66 virtual WindowOpenDisposition GetWindowOpenDisposition() const; |
| 67 virtual PageTransition::Type GetPageTransition() const; | 67 virtual PageTransition::Type GetPageTransition() const; |
| 68 virtual void AcceptInput(); | 68 virtual void AcceptInput(); |
| 69 virtual void AcceptInputWithDisposition(WindowOpenDisposition); | 69 virtual void AcceptInputWithDisposition(WindowOpenDisposition); |
| 70 virtual void FocusLocation(); | 70 virtual void FocusLocation(); |
| 71 virtual void FocusSearch(); | 71 virtual void FocusSearch(); |
| 72 virtual void UpdateFeedIcon(); | 72 virtual void UpdateFeedIcon(); |
| 73 virtual void SaveStateToContents(TabContents* contents); | 73 virtual void SaveStateToContents(TabContents* contents); |
| 74 virtual void Revert(); |
| 74 | 75 |
| 75 // Translation between a security level and the background color. Both the | 76 // Translation between a security level and the background color. Both the |
| 76 // location bar and edit have to manage and match the background color. | 77 // location bar and edit have to manage and match the background color. |
| 77 static const GdkColor kBackgroundColorByLevel[3]; | 78 static const GdkColor kBackgroundColorByLevel[3]; |
| 78 | 79 |
| 79 private: | 80 private: |
| 80 static gboolean HandleExposeThunk(GtkWidget* widget, GdkEventExpose* event, | 81 static gboolean HandleExposeThunk(GtkWidget* widget, GdkEventExpose* event, |
| 81 gpointer userdata) { | 82 gpointer userdata) { |
| 82 return reinterpret_cast<LocationBarViewGtk*>(userdata)-> | 83 return reinterpret_cast<LocationBarViewGtk*>(userdata)-> |
| 83 HandleExpose(widget, event); | 84 HandleExpose(widget, event); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 105 // The user's desired disposition for how their input should be opened | 106 // The user's desired disposition for how their input should be opened |
| 106 WindowOpenDisposition disposition_; | 107 WindowOpenDisposition disposition_; |
| 107 | 108 |
| 108 // The transition type to use for the navigation | 109 // The transition type to use for the navigation |
| 109 PageTransition::Type transition_; | 110 PageTransition::Type transition_; |
| 110 | 111 |
| 111 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); | 112 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); |
| 112 }; | 113 }; |
| 113 | 114 |
| 114 #endif // CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_ | 115 #endif // CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_ |
| OLD | NEW |