| 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 "app/theme_provider.h" | 10 #include "app/theme_provider.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #include "chrome/browser/gtk/about_chrome_dialog.h" | 26 #include "chrome/browser/gtk/about_chrome_dialog.h" |
| 27 #include "chrome/browser/gtk/bookmark_bar_gtk.h" | 27 #include "chrome/browser/gtk/bookmark_bar_gtk.h" |
| 28 #include "chrome/browser/gtk/browser_titlebar.h" | 28 #include "chrome/browser/gtk/browser_titlebar.h" |
| 29 #include "chrome/browser/gtk/browser_toolbar_gtk.h" | 29 #include "chrome/browser/gtk/browser_toolbar_gtk.h" |
| 30 #include "chrome/browser/gtk/clear_browsing_data_dialog_gtk.h" | 30 #include "chrome/browser/gtk/clear_browsing_data_dialog_gtk.h" |
| 31 #include "chrome/browser/gtk/download_shelf_gtk.h" | 31 #include "chrome/browser/gtk/download_shelf_gtk.h" |
| 32 #include "chrome/browser/gtk/find_bar_gtk.h" | 32 #include "chrome/browser/gtk/find_bar_gtk.h" |
| 33 #include "chrome/browser/gtk/go_button_gtk.h" | 33 #include "chrome/browser/gtk/go_button_gtk.h" |
| 34 #include "chrome/browser/gtk/import_dialog_gtk.h" | 34 #include "chrome/browser/gtk/import_dialog_gtk.h" |
| 35 #include "chrome/browser/gtk/infobar_container_gtk.h" | 35 #include "chrome/browser/gtk/infobar_container_gtk.h" |
| 36 #include "chrome/browser/gtk/keyword_editor_view.h" |
| 36 #include "chrome/browser/gtk/nine_box.h" | 37 #include "chrome/browser/gtk/nine_box.h" |
| 37 #include "chrome/browser/gtk/status_bubble_gtk.h" | 38 #include "chrome/browser/gtk/status_bubble_gtk.h" |
| 38 #include "chrome/browser/gtk/tab_contents_container_gtk.h" | 39 #include "chrome/browser/gtk/tab_contents_container_gtk.h" |
| 39 #include "chrome/browser/gtk/tabs/tab_strip_gtk.h" | 40 #include "chrome/browser/gtk/tabs/tab_strip_gtk.h" |
| 40 #include "chrome/browser/gtk/toolbar_star_toggle_gtk.h" | 41 #include "chrome/browser/gtk/toolbar_star_toggle_gtk.h" |
| 41 #include "chrome/browser/location_bar.h" | 42 #include "chrome/browser/location_bar.h" |
| 42 #include "chrome/browser/renderer_host/render_widget_host_view_gtk.h" | 43 #include "chrome/browser/renderer_host/render_widget_host_view_gtk.h" |
| 43 #include "chrome/browser/tab_contents/tab_contents.h" | 44 #include "chrome/browser/tab_contents/tab_contents.h" |
| 44 #include "chrome/browser/tab_contents/tab_contents_view.h" | 45 #include "chrome/browser/tab_contents/tab_contents_view.h" |
| 45 #include "chrome/common/notification_service.h" | 46 #include "chrome/common/notification_service.h" |
| (...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 572 | 573 |
| 573 void BrowserWindowGtk::ShowClearBrowsingDataDialog() { | 574 void BrowserWindowGtk::ShowClearBrowsingDataDialog() { |
| 574 ClearBrowsingDataDialogGtk::Show(window_, browser_->profile()); | 575 ClearBrowsingDataDialogGtk::Show(window_, browser_->profile()); |
| 575 } | 576 } |
| 576 | 577 |
| 577 void BrowserWindowGtk::ShowImportDialog() { | 578 void BrowserWindowGtk::ShowImportDialog() { |
| 578 ImportDialogGtk::Show(window_, browser_->profile()); | 579 ImportDialogGtk::Show(window_, browser_->profile()); |
| 579 } | 580 } |
| 580 | 581 |
| 581 void BrowserWindowGtk::ShowSearchEnginesDialog() { | 582 void BrowserWindowGtk::ShowSearchEnginesDialog() { |
| 582 NOTIMPLEMENTED(); | 583 KeywordEditorView::Show(browser_->profile()); |
| 583 } | 584 } |
| 584 | 585 |
| 585 void BrowserWindowGtk::ShowPasswordManager() { | 586 void BrowserWindowGtk::ShowPasswordManager() { |
| 586 NOTIMPLEMENTED(); | 587 NOTIMPLEMENTED(); |
| 587 } | 588 } |
| 588 | 589 |
| 589 void BrowserWindowGtk::ShowSelectProfileDialog() { | 590 void BrowserWindowGtk::ShowSelectProfileDialog() { |
| 590 NOTIMPLEMENTED(); | 591 NOTIMPLEMENTED(); |
| 591 } | 592 } |
| 592 | 593 |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1069 } | 1070 } |
| 1070 | 1071 |
| 1071 bool BrowserWindowGtk::IsToolbarSupported() { | 1072 bool BrowserWindowGtk::IsToolbarSupported() { |
| 1072 return browser_->SupportsWindowFeature(Browser::FEATURE_TOOLBAR) || | 1073 return browser_->SupportsWindowFeature(Browser::FEATURE_TOOLBAR) || |
| 1073 browser_->SupportsWindowFeature(Browser::FEATURE_LOCATIONBAR); | 1074 browser_->SupportsWindowFeature(Browser::FEATURE_LOCATIONBAR); |
| 1074 } | 1075 } |
| 1075 | 1076 |
| 1076 bool BrowserWindowGtk::IsBookmarkBarSupported() { | 1077 bool BrowserWindowGtk::IsBookmarkBarSupported() { |
| 1077 return browser_->SupportsWindowFeature(Browser::FEATURE_BOOKMARKBAR); | 1078 return browser_->SupportsWindowFeature(Browser::FEATURE_BOOKMARKBAR); |
| 1078 } | 1079 } |
| OLD | NEW |