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

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

Issue 151006: Make Linux restore Omnibox contents on tab switch. (Closed)
Patch Set: free string returned by gtk Created 11 years, 5 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/autocomplete/autocomplete_edit_view_gtk.cc ('k') | no next file » | 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 #include "chrome/browser/gtk/location_bar_view_gtk.h" 5 #include "chrome/browser/gtk/location_bar_view_gtk.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "app/resource_bundle.h" 9 #include "app/resource_bundle.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 void LocationBarViewGtk::FocusSearch() { 254 void LocationBarViewGtk::FocusSearch() {
255 location_entry_->SetFocus(); 255 location_entry_->SetFocus();
256 location_entry_->SetForcedQuery(); 256 location_entry_->SetForcedQuery();
257 } 257 }
258 258
259 void LocationBarViewGtk::UpdatePageActions() { 259 void LocationBarViewGtk::UpdatePageActions() {
260 // http://code.google.com/p/chromium/issues/detail?id=11973 260 // http://code.google.com/p/chromium/issues/detail?id=11973
261 } 261 }
262 262
263 void LocationBarViewGtk::SaveStateToContents(TabContents* contents) { 263 void LocationBarViewGtk::SaveStateToContents(TabContents* contents) {
264 // http://crbug.com/9225 264 location_entry_->SaveStateToTab(contents);
265 } 265 }
266 266
267 void LocationBarViewGtk::Revert() { 267 void LocationBarViewGtk::Revert() {
268 location_entry_->RevertAll(); 268 location_entry_->RevertAll();
269 } 269 }
270 270
271 gboolean LocationBarViewGtk::HandleExpose(GtkWidget* widget, 271 gboolean LocationBarViewGtk::HandleExpose(GtkWidget* widget,
272 GdkEventExpose* event) { 272 GdkEventExpose* event) {
273 GdkDrawable* drawable = GDK_DRAWABLE(event->window); 273 GdkDrawable* drawable = GDK_DRAWABLE(event->window);
274 GdkGC* gc = gdk_gc_new(drawable); 274 GdkGC* gc = gdk_gc_new(drawable);
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 } else { 347 } else {
348 DCHECK_EQ(info_text_type, ToolbarModel::INFO_NO_INFO); 348 DCHECK_EQ(info_text_type, ToolbarModel::INFO_NO_INFO);
349 DCHECK(info_text.empty()); 349 DCHECK(info_text.empty());
350 // Clear info_text. Should we reset the fg here? 350 // Clear info_text. Should we reset the fg here?
351 gtk_widget_hide(GTK_WIDGET(info_label_align_)); 351 gtk_widget_hide(GTK_WIDGET(info_label_align_));
352 } 352 }
353 gtk_label_set_text(GTK_LABEL(info_label_), WideToUTF8(info_text).c_str()); 353 gtk_label_set_text(GTK_LABEL(info_label_), WideToUTF8(info_text).c_str());
354 gtk_widget_set_tooltip_text(GTK_WIDGET(info_label_), 354 gtk_widget_set_tooltip_text(GTK_WIDGET(info_label_),
355 WideToUTF8(info_tooltip).c_str()); 355 WideToUTF8(info_tooltip).c_str());
356 } 356 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698