| 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 <dlfcn.h> | 9 #include <dlfcn.h> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 999 | 999 |
| 1000 bool BrowserWindowGtk::IsTabStripEditable() const { | 1000 bool BrowserWindowGtk::IsTabStripEditable() const { |
| 1001 return !tabstrip()->IsDragSessionActive() && | 1001 return !tabstrip()->IsDragSessionActive() && |
| 1002 !tabstrip()->IsActiveDropTarget(); | 1002 !tabstrip()->IsActiveDropTarget(); |
| 1003 } | 1003 } |
| 1004 | 1004 |
| 1005 bool BrowserWindowGtk::IsToolbarVisible() const { | 1005 bool BrowserWindowGtk::IsToolbarVisible() const { |
| 1006 return IsToolbarSupported(); | 1006 return IsToolbarSupported(); |
| 1007 } | 1007 } |
| 1008 | 1008 |
| 1009 gfx::Rect BrowserWindowGtk::GetRootWindowResizerRect() const { |
| 1010 return gfx::Rect(); |
| 1011 } |
| 1012 |
| 1009 bool BrowserWindowGtk::IsPanel() const { | 1013 bool BrowserWindowGtk::IsPanel() const { |
| 1010 return false; | 1014 return false; |
| 1011 } | 1015 } |
| 1012 | 1016 |
| 1013 void BrowserWindowGtk::ConfirmAddSearchProvider(const TemplateURL* template_url, | 1017 void BrowserWindowGtk::ConfirmAddSearchProvider(const TemplateURL* template_url, |
| 1014 Profile* profile) { | 1018 Profile* profile) { |
| 1015 new EditSearchEngineDialog(window_, template_url, NULL, profile); | 1019 new EditSearchEngineDialog(window_, template_url, NULL, profile); |
| 1016 } | 1020 } |
| 1017 | 1021 |
| 1018 void BrowserWindowGtk::ToggleBookmarkBar() { | 1022 void BrowserWindowGtk::ToggleBookmarkBar() { |
| (...skipping 1498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2517 wm_type == ui::WM_OPENBOX || | 2521 wm_type == ui::WM_OPENBOX || |
| 2518 wm_type == ui::WM_XFWM4); | 2522 wm_type == ui::WM_XFWM4); |
| 2519 } | 2523 } |
| 2520 | 2524 |
| 2521 // static | 2525 // static |
| 2522 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { | 2526 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { |
| 2523 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); | 2527 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); |
| 2524 browser_window_gtk->Init(); | 2528 browser_window_gtk->Init(); |
| 2525 return browser_window_gtk; | 2529 return browser_window_gtk; |
| 2526 } | 2530 } |
| OLD | NEW |