| 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 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1120 } | 1120 } |
| 1121 | 1121 |
| 1122 void BrowserWindowGtk::Copy() { | 1122 void BrowserWindowGtk::Copy() { |
| 1123 DoCutCopyPaste(this, &RenderViewHost::Copy, "copy-clipboard"); | 1123 DoCutCopyPaste(this, &RenderViewHost::Copy, "copy-clipboard"); |
| 1124 } | 1124 } |
| 1125 | 1125 |
| 1126 void BrowserWindowGtk::Paste() { | 1126 void BrowserWindowGtk::Paste() { |
| 1127 DoCutCopyPaste(this, &RenderViewHost::Paste, "paste-clipboard"); | 1127 DoCutCopyPaste(this, &RenderViewHost::Paste, "paste-clipboard"); |
| 1128 } | 1128 } |
| 1129 | 1129 |
| 1130 void BrowserWindowGtk::PrepareForInstant() { |
| 1131 // TODO: implement fade as done on windows. |
| 1132 } |
| 1133 |
| 1130 void BrowserWindowGtk::ShowInstant(TabContents* preview_contents) { | 1134 void BrowserWindowGtk::ShowInstant(TabContents* preview_contents) { |
| 1131 contents_container_->SetPreviewContents(preview_contents); | 1135 contents_container_->SetPreviewContents(preview_contents); |
| 1132 } | 1136 } |
| 1133 | 1137 |
| 1134 void BrowserWindowGtk::HideInstant() { | 1138 void BrowserWindowGtk::HideInstant() { |
| 1135 contents_container_->PopPreviewContents(); | 1139 contents_container_->PopPreviewContents(); |
| 1136 } | 1140 } |
| 1137 | 1141 |
| 1138 gfx::Rect BrowserWindowGtk::GetInstantBounds() { | 1142 gfx::Rect BrowserWindowGtk::GetInstantBounds() { |
| 1139 return gtk_util::GetWidgetScreenBounds(contents_container_->widget()); | 1143 return gtk_util::GetWidgetScreenBounds(contents_container_->widget()); |
| (...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2258 // special-case the ones where the custom frame should be used. These names | 2262 // special-case the ones where the custom frame should be used. These names |
| 2259 // are taken from the WMs' source code. | 2263 // are taken from the WMs' source code. |
| 2260 return (wm_name == "Blackbox" || | 2264 return (wm_name == "Blackbox" || |
| 2261 wm_name == "compiz" || | 2265 wm_name == "compiz" || |
| 2262 wm_name == "e16" || // Enlightenment DR16 | 2266 wm_name == "e16" || // Enlightenment DR16 |
| 2263 wm_name == "Metacity" || | 2267 wm_name == "Metacity" || |
| 2264 wm_name == "Mutter" || | 2268 wm_name == "Mutter" || |
| 2265 wm_name == "Openbox" || | 2269 wm_name == "Openbox" || |
| 2266 wm_name == "Xfwm4"); | 2270 wm_name == "Xfwm4"); |
| 2267 } | 2271 } |
| OLD | NEW |