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

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

Issue 259047: Move classes depending on Skia out of base/gfx and into app/gfx. Rename... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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) 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 #include <gdk/gdkkeysyms.h> 8 #include <gdk/gdkkeysyms.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
11 11
12 #include "app/gfx/font.h" 12 #include "app/gfx/font.h"
13 #include "app/gfx/gtk_util.h"
13 #include "app/l10n_util.h" 14 #include "app/l10n_util.h"
14 #include "base/gfx/gtk_util.h"
15 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "base/string_util.h" 16 #include "base/string_util.h"
17 #include "chrome/app/chrome_dll_resource.h" 17 #include "chrome/app/chrome_dll_resource.h"
18 #include "chrome/browser/autocomplete/autocomplete_edit.h" 18 #include "chrome/browser/autocomplete/autocomplete_edit.h"
19 #include "chrome/browser/autocomplete/autocomplete_popup_model.h" 19 #include "chrome/browser/autocomplete/autocomplete_popup_model.h"
20 #include "chrome/browser/autocomplete/autocomplete_popup_view_gtk.h" 20 #include "chrome/browser/autocomplete/autocomplete_popup_view_gtk.h"
21 #include "chrome/browser/command_updater.h" 21 #include "chrome/browser/command_updater.h"
22 #include "chrome/browser/defaults.h" 22 #include "chrome/browser/defaults.h"
23 #include "chrome/browser/gtk/view_id_util.h" 23 #include "chrome/browser/gtk/view_id_util.h"
24 #include "chrome/browser/tab_contents/tab_contents.h" 24 #include "chrome/browser/tab_contents/tab_contents.h"
(...skipping 1155 matching lines...) Expand 10 before | Expand all | Expand 10 after
1180 std::string utf8 = WideToUTF8(text); 1180 std::string utf8 = WideToUTF8(text);
1181 gtk_text_buffer_set_text(text_buffer_, utf8.data(), utf8.length()); 1181 gtk_text_buffer_set_text(text_buffer_, utf8.data(), utf8.length());
1182 SetSelectedRange(range); 1182 SetSelectedRange(range);
1183 } 1183 }
1184 1184
1185 void AutocompleteEditViewGtk::SetSelectedRange(const CharRange& range) { 1185 void AutocompleteEditViewGtk::SetSelectedRange(const CharRange& range) {
1186 GtkTextIter insert, bound; 1186 GtkTextIter insert, bound;
1187 ItersFromCharRange(range, &bound, &insert); 1187 ItersFromCharRange(range, &bound, &insert);
1188 gtk_text_buffer_select_range(text_buffer_, &insert, &bound); 1188 gtk_text_buffer_select_range(text_buffer_, &insert, &bound);
1189 } 1189 }
OLDNEW
« no previous file with comments | « base/gfx/native_theme_unittest.cc ('k') | chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698