| 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 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1114 } | 1114 } |
| 1115 | 1115 |
| 1116 void BrowserWindowGtk::WebContentsFocused(WebContents* contents) { | 1116 void BrowserWindowGtk::WebContentsFocused(WebContents* contents) { |
| 1117 NOTIMPLEMENTED(); | 1117 NOTIMPLEMENTED(); |
| 1118 } | 1118 } |
| 1119 | 1119 |
| 1120 void BrowserWindowGtk::ShowPageInfo(content::WebContents* web_contents, | 1120 void BrowserWindowGtk::ShowPageInfo(content::WebContents* web_contents, |
| 1121 const GURL& url, | 1121 const GURL& url, |
| 1122 const SSLStatus& ssl, | 1122 const SSLStatus& ssl, |
| 1123 bool show_history) { | 1123 bool show_history) { |
| 1124 browser::ShowPageInfoBubble(window_, web_contents, url, ssl, show_history, | 1124 chrome::ShowPageInfoBubble(window_, web_contents, url, ssl, show_history, |
| 1125 browser_.get()); | 1125 browser_.get()); |
| 1126 } | 1126 } |
| 1127 | 1127 |
| 1128 void BrowserWindowGtk::ShowWebsiteSettings( | 1128 void BrowserWindowGtk::ShowWebsiteSettings( |
| 1129 Profile* profile, | 1129 Profile* profile, |
| 1130 TabContents* tab_contents, | 1130 TabContents* tab_contents, |
| 1131 const GURL& url, | 1131 const GURL& url, |
| 1132 const content::SSLStatus& ssl, | 1132 const content::SSLStatus& ssl, |
| 1133 bool show_history) { | 1133 bool show_history) { |
| 1134 WebsiteSettingsPopupGtk::Show(GetNativeWindow(), profile, | 1134 WebsiteSettingsPopupGtk::Show(GetNativeWindow(), profile, |
| 1135 tab_contents, url, ssl); | 1135 tab_contents, url, ssl); |
| (...skipping 1467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2603 wm_type == ui::WM_OPENBOX || | 2603 wm_type == ui::WM_OPENBOX || |
| 2604 wm_type == ui::WM_XFWM4); | 2604 wm_type == ui::WM_XFWM4); |
| 2605 } | 2605 } |
| 2606 | 2606 |
| 2607 // static | 2607 // static |
| 2608 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { | 2608 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { |
| 2609 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); | 2609 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); |
| 2610 browser_window_gtk->Init(); | 2610 browser_window_gtk->Init(); |
| 2611 return browser_window_gtk; | 2611 return browser_window_gtk; |
| 2612 } | 2612 } |
| OLD | NEW |