| 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 <gdk/gdkkeysyms.h> | 7 #include <gdk/gdkkeysyms.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 1130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1141 | 1141 |
| 1142 void BrowserWindowGtk::HideInstant() { | 1142 void BrowserWindowGtk::HideInstant() { |
| 1143 contents_container_->PopPreview(); | 1143 contents_container_->PopPreview(); |
| 1144 MaybeShowBookmarkBar(false); | 1144 MaybeShowBookmarkBar(false); |
| 1145 } | 1145 } |
| 1146 | 1146 |
| 1147 gfx::Rect BrowserWindowGtk::GetInstantBounds() { | 1147 gfx::Rect BrowserWindowGtk::GetInstantBounds() { |
| 1148 return ui::GetWidgetScreenBounds(contents_container_->widget()); | 1148 return ui::GetWidgetScreenBounds(contents_container_->widget()); |
| 1149 } | 1149 } |
| 1150 | 1150 |
| 1151 void BrowserWindowGtk::SetInstantPreviewHeight(int height, |
| 1152 InstantSizeUnits units) { |
| 1153 // TODO(jered): Implement. |
| 1154 NOTIMPLEMENTED(); |
| 1155 } |
| 1156 |
| 1151 bool BrowserWindowGtk::IsInstantTabShowing() { | 1157 bool BrowserWindowGtk::IsInstantTabShowing() { |
| 1152 return contents_container_->HasPreview(); | 1158 return contents_container_->HasPreview(); |
| 1153 } | 1159 } |
| 1154 | 1160 |
| 1155 WindowOpenDisposition BrowserWindowGtk::GetDispositionForPopupBounds( | 1161 WindowOpenDisposition BrowserWindowGtk::GetDispositionForPopupBounds( |
| 1156 const gfx::Rect& bounds) { | 1162 const gfx::Rect& bounds) { |
| 1157 return NEW_POPUP; | 1163 return NEW_POPUP; |
| 1158 } | 1164 } |
| 1159 | 1165 |
| 1160 FindBar* BrowserWindowGtk::CreateFindBar() { | 1166 FindBar* BrowserWindowGtk::CreateFindBar() { |
| (...skipping 1272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2433 wm_type == ui::WM_OPENBOX || | 2439 wm_type == ui::WM_OPENBOX || |
| 2434 wm_type == ui::WM_XFWM4); | 2440 wm_type == ui::WM_XFWM4); |
| 2435 } | 2441 } |
| 2436 | 2442 |
| 2437 // static | 2443 // static |
| 2438 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { | 2444 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { |
| 2439 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); | 2445 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); |
| 2440 browser_window_gtk->Init(); | 2446 browser_window_gtk->Init(); |
| 2441 return browser_window_gtk; | 2447 return browser_window_gtk; |
| 2442 } | 2448 } |
| OLD | NEW |