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 "chrome/browser/ui/gtk/browser_window_gtk.h" | 5 #include "chrome/browser/ui/gtk/browser_window_gtk.h" |
6 | 6 |
7 #include <dlfcn.h> | 7 #include <dlfcn.h> |
8 #include <gdk/gdkkeysyms.h> | 8 #include <gdk/gdkkeysyms.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 1091 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1102 NOTIMPLEMENTED(); | 1102 NOTIMPLEMENTED(); |
1103 } | 1103 } |
1104 | 1104 |
1105 void BrowserWindowGtk::ShowPageInfo(Profile* profile, | 1105 void BrowserWindowGtk::ShowPageInfo(Profile* profile, |
1106 const GURL& url, | 1106 const GURL& url, |
1107 const SSLStatus& ssl, | 1107 const SSLStatus& ssl, |
1108 bool show_history) { | 1108 bool show_history) { |
1109 browser::ShowPageInfoBubble(window_, profile, url, ssl, show_history); | 1109 browser::ShowPageInfoBubble(window_, profile, url, ssl, show_history); |
1110 } | 1110 } |
1111 | 1111 |
| 1112 void BrowserWindowGtk::ShowWebsiteSettings( |
| 1113 Profile* profile, |
| 1114 TabContentsWrapper* tab_contents_wrapper, |
| 1115 const GURL& url, |
| 1116 const content::SSLStatus& ssl, |
| 1117 bool show_history) { |
| 1118 } |
| 1119 |
1112 void BrowserWindowGtk::ShowAppMenu() { | 1120 void BrowserWindowGtk::ShowAppMenu() { |
1113 toolbar_->ShowAppMenu(); | 1121 toolbar_->ShowAppMenu(); |
1114 } | 1122 } |
1115 | 1123 |
1116 bool BrowserWindowGtk::PreHandleKeyboardEvent( | 1124 bool BrowserWindowGtk::PreHandleKeyboardEvent( |
1117 const NativeWebKeyboardEvent& event, bool* is_keyboard_shortcut) { | 1125 const NativeWebKeyboardEvent& event, bool* is_keyboard_shortcut) { |
1118 GdkEventKey* os_event = &event.os_event->key; | 1126 GdkEventKey* os_event = &event.os_event->key; |
1119 | 1127 |
1120 if (!os_event || event.type != WebKit::WebInputEvent::RawKeyDown) | 1128 if (!os_event || event.type != WebKit::WebInputEvent::RawKeyDown) |
1121 return false; | 1129 return false; |
(...skipping 1415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2537 wm_type == ui::WM_OPENBOX || | 2545 wm_type == ui::WM_OPENBOX || |
2538 wm_type == ui::WM_XFWM4); | 2546 wm_type == ui::WM_XFWM4); |
2539 } | 2547 } |
2540 | 2548 |
2541 // static | 2549 // static |
2542 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { | 2550 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { |
2543 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); | 2551 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); |
2544 browser_window_gtk->Init(); | 2552 browser_window_gtk->Init(); |
2545 return browser_window_gtk; | 2553 return browser_window_gtk; |
2546 } | 2554 } |
OLD | NEW |