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 1125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1136 void BrowserWindowGtk::ShowMatchPreview() { | 1136 void BrowserWindowGtk::ShowMatchPreview() { |
1137 // TODO: implement me | 1137 // TODO: implement me |
1138 NOTIMPLEMENTED(); | 1138 NOTIMPLEMENTED(); |
1139 } | 1139 } |
1140 | 1140 |
1141 void BrowserWindowGtk::HideMatchPreview() { | 1141 void BrowserWindowGtk::HideMatchPreview() { |
1142 // TODO: implement me | 1142 // TODO: implement me |
1143 NOTIMPLEMENTED(); | 1143 NOTIMPLEMENTED(); |
1144 } | 1144 } |
1145 | 1145 |
| 1146 gfx::Rect BrowserWindowGtk::GetMatchPreviewBounds() { |
| 1147 // TODO: implement me |
| 1148 NOTIMPLEMENTED(); |
| 1149 return gfx::Rect(); |
| 1150 } |
| 1151 |
1146 void BrowserWindowGtk::ConfirmBrowserCloseWithPendingDownloads() { | 1152 void BrowserWindowGtk::ConfirmBrowserCloseWithPendingDownloads() { |
1147 new DownloadInProgressDialogGtk(browser()); | 1153 new DownloadInProgressDialogGtk(browser()); |
1148 } | 1154 } |
1149 | 1155 |
1150 void BrowserWindowGtk::Observe(NotificationType type, | 1156 void BrowserWindowGtk::Observe(NotificationType type, |
1151 const NotificationSource& source, | 1157 const NotificationSource& source, |
1152 const NotificationDetails& details) { | 1158 const NotificationDetails& details) { |
1153 switch (type.value) { | 1159 switch (type.value) { |
1154 case NotificationType::BOOKMARK_BAR_VISIBILITY_PREF_CHANGED: | 1160 case NotificationType::BOOKMARK_BAR_VISIBILITY_PREF_CHANGED: |
1155 MaybeShowBookmarkBar(browser_->GetSelectedTabContents(), true); | 1161 MaybeShowBookmarkBar(browser_->GetSelectedTabContents(), true); |
(...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2178 // special-case the ones where the custom frame should be used. These names | 2184 // special-case the ones where the custom frame should be used. These names |
2179 // are taken from the WMs' source code. | 2185 // are taken from the WMs' source code. |
2180 return (wm_name == "Blackbox" || | 2186 return (wm_name == "Blackbox" || |
2181 wm_name == "compiz" || | 2187 wm_name == "compiz" || |
2182 wm_name == "e16" || // Enlightenment DR16 | 2188 wm_name == "e16" || // Enlightenment DR16 |
2183 wm_name == "Metacity" || | 2189 wm_name == "Metacity" || |
2184 wm_name == "Mutter" || | 2190 wm_name == "Mutter" || |
2185 wm_name == "Openbox" || | 2191 wm_name == "Openbox" || |
2186 wm_name == "Xfwm4"); | 2192 wm_name == "Xfwm4"); |
2187 } | 2193 } |
OLD | NEW |