| 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/browser_window_gtk.h" | 5 #include "chrome/browser/gtk/browser_window_gtk.h" |
| 6 | 6 |
| 7 #include <gdk/gdkkeysyms.h> | 7 #include <gdk/gdkkeysyms.h> |
| 8 | 8 |
| 9 #include "app/resource_bundle.h" | 9 #include "app/resource_bundle.h" |
| 10 #include "base/base_paths_linux.h" | 10 #include "base/base_paths_linux.h" |
| 11 #include "base/gfx/gtk_util.h" | 11 #include "base/gfx/gtk_util.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
| 14 #include "base/path_service.h" | 14 #include "base/path_service.h" |
| 15 #include "base/string_util.h" | 15 #include "base/string_util.h" |
| 16 #include "base/time.h" | 16 #include "base/time.h" |
| 17 #include "chrome/app/chrome_dll_resource.h" | 17 #include "chrome/app/chrome_dll_resource.h" |
| 18 #include "chrome/browser/bookmarks/bookmark_utils.h" | 18 #include "chrome/browser/bookmarks/bookmark_utils.h" |
| 19 #include "chrome/browser/browser.h" | 19 #include "chrome/browser/browser.h" |
| 20 #include "chrome/browser/browser_list.h" | 20 #include "chrome/browser/browser_list.h" |
| 21 #include "chrome/browser/gtk/about_chrome_dialog.h" | 21 #include "chrome/browser/gtk/about_chrome_dialog.h" |
| 22 #include "chrome/browser/gtk/bookmark_bar_gtk.h" | 22 #include "chrome/browser/gtk/bookmark_bar_gtk.h" |
| 23 #include "chrome/browser/gtk/browser_toolbar_gtk.h" | 23 #include "chrome/browser/gtk/browser_toolbar_gtk.h" |
| 24 #include "chrome/browser/gtk/go_button_gtk.h" | 24 #include "chrome/browser/gtk/go_button_gtk.h" |
| 25 #include "chrome/browser/gtk/import_dialog_gtk.h" |
| 25 #include "chrome/browser/gtk/infobar_container_gtk.h" | 26 #include "chrome/browser/gtk/infobar_container_gtk.h" |
| 26 #include "chrome/browser/gtk/find_bar_gtk.h" | 27 #include "chrome/browser/gtk/find_bar_gtk.h" |
| 27 #include "chrome/browser/gtk/status_bubble_gtk.h" | 28 #include "chrome/browser/gtk/status_bubble_gtk.h" |
| 28 #include "chrome/browser/gtk/tab_contents_container_gtk.h" | 29 #include "chrome/browser/gtk/tab_contents_container_gtk.h" |
| 29 #include "chrome/browser/gtk/tabs/tab_strip_gtk.h" | 30 #include "chrome/browser/gtk/tabs/tab_strip_gtk.h" |
| 30 #include "chrome/browser/gtk/toolbar_star_toggle_gtk.h" | 31 #include "chrome/browser/gtk/toolbar_star_toggle_gtk.h" |
| 31 #include "chrome/browser/location_bar.h" | 32 #include "chrome/browser/location_bar.h" |
| 32 #include "chrome/browser/renderer_host/render_widget_host_view_gtk.h" | 33 #include "chrome/browser/renderer_host/render_widget_host_view_gtk.h" |
| 33 #include "chrome/browser/tab_contents/tab_contents.h" | 34 #include "chrome/browser/tab_contents/tab_contents.h" |
| 34 #include "chrome/browser/tab_contents/tab_contents_view.h" | 35 #include "chrome/browser/tab_contents/tab_contents_view.h" |
| (...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 558 | 559 |
| 559 void BrowserWindowGtk::ShowReportBugDialog() { | 560 void BrowserWindowGtk::ShowReportBugDialog() { |
| 560 NOTIMPLEMENTED(); | 561 NOTIMPLEMENTED(); |
| 561 } | 562 } |
| 562 | 563 |
| 563 void BrowserWindowGtk::ShowClearBrowsingDataDialog() { | 564 void BrowserWindowGtk::ShowClearBrowsingDataDialog() { |
| 564 NOTIMPLEMENTED(); | 565 NOTIMPLEMENTED(); |
| 565 } | 566 } |
| 566 | 567 |
| 567 void BrowserWindowGtk::ShowImportDialog() { | 568 void BrowserWindowGtk::ShowImportDialog() { |
| 568 NOTIMPLEMENTED(); | 569 ImportDialogGtk::Show(window_, browser_->profile()); |
| 569 } | 570 } |
| 570 | 571 |
| 571 void BrowserWindowGtk::ShowSearchEnginesDialog() { | 572 void BrowserWindowGtk::ShowSearchEnginesDialog() { |
| 572 NOTIMPLEMENTED(); | 573 NOTIMPLEMENTED(); |
| 573 } | 574 } |
| 574 | 575 |
| 575 void BrowserWindowGtk::ShowPasswordManager() { | 576 void BrowserWindowGtk::ShowPasswordManager() { |
| 576 NOTIMPLEMENTED(); | 577 NOTIMPLEMENTED(); |
| 577 } | 578 } |
| 578 | 579 |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 795 browser_window->ExecuteBrowserCommand(command_id); | 796 browser_window->ExecuteBrowserCommand(command_id); |
| 796 } | 797 } |
| 797 | 798 |
| 798 return TRUE; | 799 return TRUE; |
| 799 } | 800 } |
| 800 | 801 |
| 801 void BrowserWindowGtk::ExecuteBrowserCommand(int id) { | 802 void BrowserWindowGtk::ExecuteBrowserCommand(int id) { |
| 802 if (browser_->command_updater()->IsCommandEnabled(id)) | 803 if (browser_->command_updater()->IsCommandEnabled(id)) |
| 803 browser_->ExecuteCommand(id); | 804 browser_->ExecuteCommand(id); |
| 804 } | 805 } |
| OLD | NEW |