| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/shell/shell.h" | 5 #include "content/shell/shell.h" |
| 6 | 6 |
| 7 #include <gdk/gdkkeysyms.h> | 7 #include <gdk/gdkkeysyms.h> |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 AddMenuEntry(debug_menu, "Show web inspector...", | 53 AddMenuEntry(debug_menu, "Show web inspector...", |
| 54 G_CALLBACK(ShowWebInspectorActivated), shell); | 54 G_CALLBACK(ShowWebInspectorActivated), shell); |
| 55 return menu_bar; | 55 return menu_bar; |
| 56 } | 56 } |
| 57 | 57 |
| 58 } // namespace | 58 } // namespace |
| 59 | 59 |
| 60 void Shell::PlatformInitialize() { | 60 void Shell::PlatformInitialize() { |
| 61 } | 61 } |
| 62 | 62 |
| 63 base::StringPiece Shell::PlatformResourceProvider(int key) { | |
| 64 NOTIMPLEMENTED(); | |
| 65 return base::StringPiece(); | |
| 66 } | |
| 67 | |
| 68 void Shell::PlatformCleanUp() { | 63 void Shell::PlatformCleanUp() { |
| 69 // Nothing to clean up; GTK will clean up the widgets shortly after. | 64 // Nothing to clean up; GTK will clean up the widgets shortly after. |
| 70 } | 65 } |
| 71 | 66 |
| 72 void Shell::PlatformEnableUIControl(UIControl control, bool is_enabled) { | 67 void Shell::PlatformEnableUIControl(UIControl control, bool is_enabled) { |
| 73 GtkToolItem* item = NULL; | 68 GtkToolItem* item = NULL; |
| 74 switch (control) { | 69 switch (control) { |
| 75 case BACK_BUTTON: | 70 case BACK_BUTTON: |
| 76 item = back_button_; | 71 item = back_button_; |
| 77 break; | 72 break; |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 gtk_widget_grab_focus(GTK_WIDGET(url_edit_view_)); | 287 gtk_widget_grab_focus(GTK_WIDGET(url_edit_view_)); |
| 293 return TRUE; | 288 return TRUE; |
| 294 } | 289 } |
| 295 | 290 |
| 296 void Shell::PlatformSetTitle(const string16& title) { | 291 void Shell::PlatformSetTitle(const string16& title) { |
| 297 std::string title_utf8 = UTF16ToUTF8(title); | 292 std::string title_utf8 = UTF16ToUTF8(title); |
| 298 gtk_window_set_title(GTK_WINDOW(window_), title_utf8.c_str()); | 293 gtk_window_set_title(GTK_WINDOW(window_), title_utf8.c_str()); |
| 299 } | 294 } |
| 300 | 295 |
| 301 } // namespace content | 296 } // namespace content |
| OLD | NEW |