| 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 #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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 void LocationBarViewGtk::FocusSearch() { | 183 void LocationBarViewGtk::FocusSearch() { |
| 184 location_entry_->SetUserText(L"?"); | 184 location_entry_->SetUserText(L"?"); |
| 185 location_entry_->SetFocus(); | 185 location_entry_->SetFocus(); |
| 186 } | 186 } |
| 187 | 187 |
| 188 void LocationBarViewGtk::UpdatePageActions() { | 188 void LocationBarViewGtk::UpdatePageActions() { |
| 189 // http://code.google.com/p/chromium/issues/detail?id=11973 | 189 // http://code.google.com/p/chromium/issues/detail?id=11973 |
| 190 } | 190 } |
| 191 | 191 |
| 192 void LocationBarViewGtk::SaveStateToContents(TabContents* contents) { | 192 void LocationBarViewGtk::SaveStateToContents(TabContents* contents) { |
| 193 NOTIMPLEMENTED(); | 193 // http://crbug.com/9225 |
| 194 } | 194 } |
| 195 | 195 |
| 196 void LocationBarViewGtk::Revert() { | 196 void LocationBarViewGtk::Revert() { |
| 197 location_entry_->RevertAll(); | 197 location_entry_->RevertAll(); |
| 198 } | 198 } |
| 199 | 199 |
| 200 gboolean LocationBarViewGtk::HandleExpose(GtkWidget* widget, | 200 gboolean LocationBarViewGtk::HandleExpose(GtkWidget* widget, |
| 201 GdkEventExpose* event) { | 201 GdkEventExpose* event) { |
| 202 GdkDrawable* drawable = GDK_DRAWABLE(event->window); | 202 GdkDrawable* drawable = GDK_DRAWABLE(event->window); |
| 203 GdkGC* gc = gdk_gc_new(drawable); | 203 GdkGC* gc = gdk_gc_new(drawable); |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 break; | 285 break; |
| 286 default: | 286 default: |
| 287 NOTREACHED(); | 287 NOTREACHED(); |
| 288 security_icon_ = NULL; | 288 security_icon_ = NULL; |
| 289 break; | 289 break; |
| 290 } | 290 } |
| 291 | 291 |
| 292 // Make sure there is room for the icon. | 292 // Make sure there is room for the icon. |
| 293 UpdateAlignmentPadding(); | 293 UpdateAlignmentPadding(); |
| 294 } | 294 } |
| OLD | NEW |