| 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 #include <X11/XF86keysym.h> | 8 #include <X11/XF86keysym.h> |
| 9 | 9 |
| 10 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 #include "chrome/browser/gtk/info_bubble_gtk.h" | 46 #include "chrome/browser/gtk/info_bubble_gtk.h" |
| 47 #include "chrome/browser/gtk/infobar_container_gtk.h" | 47 #include "chrome/browser/gtk/infobar_container_gtk.h" |
| 48 #include "chrome/browser/gtk/keyword_editor_view.h" | 48 #include "chrome/browser/gtk/keyword_editor_view.h" |
| 49 #include "chrome/browser/gtk/nine_box.h" | 49 #include "chrome/browser/gtk/nine_box.h" |
| 50 #include "chrome/browser/gtk/status_bubble_gtk.h" | 50 #include "chrome/browser/gtk/status_bubble_gtk.h" |
| 51 #include "chrome/browser/gtk/tab_contents_container_gtk.h" | 51 #include "chrome/browser/gtk/tab_contents_container_gtk.h" |
| 52 #include "chrome/browser/gtk/tabs/tab_strip_gtk.h" | 52 #include "chrome/browser/gtk/tabs/tab_strip_gtk.h" |
| 53 #include "chrome/browser/gtk/task_manager_gtk.h" | 53 #include "chrome/browser/gtk/task_manager_gtk.h" |
| 54 #include "chrome/browser/gtk/toolbar_star_toggle_gtk.h" | 54 #include "chrome/browser/gtk/toolbar_star_toggle_gtk.h" |
| 55 #include "chrome/browser/location_bar.h" | 55 #include "chrome/browser/location_bar.h" |
| 56 #include "chrome/browser/page_info_window.h" |
| 56 #include "chrome/browser/renderer_host/render_widget_host_view_gtk.h" | 57 #include "chrome/browser/renderer_host/render_widget_host_view_gtk.h" |
| 57 #include "chrome/browser/tab_contents/tab_contents.h" | 58 #include "chrome/browser/tab_contents/tab_contents.h" |
| 58 #include "chrome/browser/tab_contents/tab_contents_view.h" | 59 #include "chrome/browser/tab_contents/tab_contents_view.h" |
| 59 #include "chrome/browser/window_sizer.h" | 60 #include "chrome/browser/window_sizer.h" |
| 60 #include "chrome/common/gtk_util.h" | 61 #include "chrome/common/gtk_util.h" |
| 61 #include "chrome/common/notification_service.h" | 62 #include "chrome/common/notification_service.h" |
| 62 #include "chrome/common/pref_names.h" | 63 #include "chrome/common/pref_names.h" |
| 63 #include "chrome/common/pref_service.h" | 64 #include "chrome/common/pref_service.h" |
| 64 #include "grit/app_resources.h" | 65 #include "grit/app_resources.h" |
| 65 #include "grit/theme_resources.h" | 66 #include "grit/theme_resources.h" |
| (...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 901 } | 902 } |
| 902 | 903 |
| 903 void BrowserWindowGtk::TabContentsFocused(TabContents* tab_contents) { | 904 void BrowserWindowGtk::TabContentsFocused(TabContents* tab_contents) { |
| 904 NOTIMPLEMENTED(); | 905 NOTIMPLEMENTED(); |
| 905 } | 906 } |
| 906 | 907 |
| 907 void BrowserWindowGtk::ShowPageInfo(Profile* profile, | 908 void BrowserWindowGtk::ShowPageInfo(Profile* profile, |
| 908 const GURL& url, | 909 const GURL& url, |
| 909 const NavigationEntry::SSLStatus& ssl, | 910 const NavigationEntry::SSLStatus& ssl, |
| 910 bool show_history) { | 911 bool show_history) { |
| 911 // TODO(port): port PageInfoWindow. | 912 browser::ShowPageInfo(window_, profile, url, ssl, show_history); |
| 912 NOTIMPLEMENTED() << "IDS_CONTENT_CONTEXT_VIEWFRAMEINFO"; | |
| 913 } | 913 } |
| 914 | 914 |
| 915 void BrowserWindowGtk::ConfirmBrowserCloseWithPendingDownloads() { | 915 void BrowserWindowGtk::ConfirmBrowserCloseWithPendingDownloads() { |
| 916 NOTIMPLEMENTED(); | 916 NOTIMPLEMENTED(); |
| 917 browser_->InProgressDownloadResponse(false); | 917 browser_->InProgressDownloadResponse(false); |
| 918 } | 918 } |
| 919 | 919 |
| 920 void BrowserWindowGtk::Observe(NotificationType type, | 920 void BrowserWindowGtk::Observe(NotificationType type, |
| 921 const NotificationSource& source, | 921 const NotificationSource& source, |
| 922 const NotificationDetails& details) { | 922 const NotificationDetails& details) { |
| (...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1713 *edge = GDK_WINDOW_EDGE_NORTH_EAST; | 1713 *edge = GDK_WINDOW_EDGE_NORTH_EAST; |
| 1714 } else if (y < bounds_.height() - kResizeAreaCornerSize) { | 1714 } else if (y < bounds_.height() - kResizeAreaCornerSize) { |
| 1715 *edge = GDK_WINDOW_EDGE_EAST; | 1715 *edge = GDK_WINDOW_EDGE_EAST; |
| 1716 } else { | 1716 } else { |
| 1717 *edge = GDK_WINDOW_EDGE_SOUTH_EAST; | 1717 *edge = GDK_WINDOW_EDGE_SOUTH_EAST; |
| 1718 } | 1718 } |
| 1719 return true; | 1719 return true; |
| 1720 } | 1720 } |
| 1721 NOTREACHED(); | 1721 NOTREACHED(); |
| 1722 } | 1722 } |
| OLD | NEW |