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

Side by Side Diff: chrome/browser/autocomplete/autocomplete_popup_view_gtk.h

Issue 6306011: Remove wstring from autocomplete. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_GTK_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_GTK_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_GTK_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 #include <map> 10 #include <map>
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // Overridden from NotificationObserver: 46 // Overridden from NotificationObserver:
47 virtual void Observe(NotificationType type, 47 virtual void Observe(NotificationType type,
48 const NotificationSource& source, 48 const NotificationSource& source,
49 const NotificationDetails& details); 49 const NotificationDetails& details);
50 50
51 private: 51 private:
52 // Be friendly for unit tests. 52 // Be friendly for unit tests.
53 friend class AutocompletePopupViewGtkTest; 53 friend class AutocompletePopupViewGtkTest;
54 static void SetupLayoutForMatch( 54 static void SetupLayoutForMatch(
55 PangoLayout* layout, 55 PangoLayout* layout,
56 const std::wstring& text, 56 const string16& text,
57 const AutocompleteMatch::ACMatchClassifications& classifications, 57 const AutocompleteMatch::ACMatchClassifications& classifications,
58 const GdkColor* base_color, 58 const GdkColor* base_color,
59 const GdkColor* dim_color, 59 const GdkColor* dim_color,
60 const GdkColor* url_color, 60 const GdkColor* url_color,
61 const std::string& prefix_text); 61 const std::string& prefix_text);
62 62
63 void Show(size_t num_results); 63 void Show(size_t num_results);
64 void Hide(); 64 void Hide();
65 65
66 // Restack the popup window directly above the browser's toplevel window. 66 // Restack the popup window directly above the browser's toplevel window.
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // erroneously ignore the next drag. 143 // erroneously ignore the next drag.
144 bool ignore_mouse_drag_; 144 bool ignore_mouse_drag_;
145 145
146 // Whether our popup is currently open / shown, or closed / hidden. 146 // Whether our popup is currently open / shown, or closed / hidden.
147 bool opened_; 147 bool opened_;
148 148
149 DISALLOW_COPY_AND_ASSIGN(AutocompletePopupViewGtk); 149 DISALLOW_COPY_AND_ASSIGN(AutocompletePopupViewGtk);
150 }; 150 };
151 151
152 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_GTK_H_ 152 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698