| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 1026 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1037 } | 1037 } |
| 1038 | 1038 |
| 1039 void BrowserWindowGtk::Copy() { | 1039 void BrowserWindowGtk::Copy() { |
| 1040 DoCutCopyPaste(this, &RenderViewHost::Copy, "copy-clipboard"); | 1040 DoCutCopyPaste(this, &RenderViewHost::Copy, "copy-clipboard"); |
| 1041 } | 1041 } |
| 1042 | 1042 |
| 1043 void BrowserWindowGtk::Paste() { | 1043 void BrowserWindowGtk::Paste() { |
| 1044 DoCutCopyPaste(this, &RenderViewHost::Paste, "paste-clipboard"); | 1044 DoCutCopyPaste(this, &RenderViewHost::Paste, "paste-clipboard"); |
| 1045 } | 1045 } |
| 1046 | 1046 |
| 1047 void BrowserWindowGtk::ToggleTabStripMode() { | |
| 1048 NOTIMPLEMENTED(); | |
| 1049 } | |
| 1050 | |
| 1051 void BrowserWindowGtk::ConfirmBrowserCloseWithPendingDownloads() { | 1047 void BrowserWindowGtk::ConfirmBrowserCloseWithPendingDownloads() { |
| 1052 new DownloadInProgressDialogGtk(browser()); | 1048 new DownloadInProgressDialogGtk(browser()); |
| 1053 } | 1049 } |
| 1054 | 1050 |
| 1055 void BrowserWindowGtk::Observe(NotificationType type, | 1051 void BrowserWindowGtk::Observe(NotificationType type, |
| 1056 const NotificationSource& source, | 1052 const NotificationSource& source, |
| 1057 const NotificationDetails& details) { | 1053 const NotificationDetails& details) { |
| 1058 switch (type.value) { | 1054 switch (type.value) { |
| 1059 case NotificationType::BOOKMARK_BAR_VISIBILITY_PREF_CHANGED: | 1055 case NotificationType::BOOKMARK_BAR_VISIBILITY_PREF_CHANGED: |
| 1060 MaybeShowBookmarkBar(browser_->GetSelectedTabContents(), true); | 1056 MaybeShowBookmarkBar(browser_->GetSelectedTabContents(), true); |
| (...skipping 998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2059 // are taken from the WMs' source code. | 2055 // are taken from the WMs' source code. |
| 2060 return (wm_name == "Blackbox" || | 2056 return (wm_name == "Blackbox" || |
| 2061 wm_name == "compiz" || | 2057 wm_name == "compiz" || |
| 2062 wm_name == "e16" || // Enlightenment DR16 | 2058 wm_name == "e16" || // Enlightenment DR16 |
| 2063 wm_name == "KWin" || | 2059 wm_name == "KWin" || |
| 2064 wm_name == "Metacity" || | 2060 wm_name == "Metacity" || |
| 2065 wm_name == "Mutter" || | 2061 wm_name == "Mutter" || |
| 2066 wm_name == "Openbox" || | 2062 wm_name == "Openbox" || |
| 2067 wm_name == "Xfwm4"); | 2063 wm_name == "Xfwm4"); |
| 2068 } | 2064 } |
| OLD | NEW |