| 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 <dlfcn.h> | 7 #include <dlfcn.h> |
| 8 #include <gdk/gdkkeysyms.h> | 8 #include <gdk/gdkkeysyms.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 1050 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1061 TaskManagerGtk::Show(true); | 1061 TaskManagerGtk::Show(true); |
| 1062 } | 1062 } |
| 1063 #endif // defined(WEBUI_TASK_MANAGER) | 1063 #endif // defined(WEBUI_TASK_MANAGER) |
| 1064 } | 1064 } |
| 1065 | 1065 |
| 1066 void BrowserWindowGtk::ShowBookmarkBubble(const GURL& url, | 1066 void BrowserWindowGtk::ShowBookmarkBubble(const GURL& url, |
| 1067 bool already_bookmarked) { | 1067 bool already_bookmarked) { |
| 1068 toolbar_->GetLocationBarView()->ShowStarBubble(url, !already_bookmarked); | 1068 toolbar_->GetLocationBarView()->ShowStarBubble(url, !already_bookmarked); |
| 1069 } | 1069 } |
| 1070 | 1070 |
| 1071 void BrowserWindowGtk::ShowChromeToMobileBubble() { |
| 1072 NOTIMPLEMENTED(); |
| 1073 } |
| 1074 |
| 1071 bool BrowserWindowGtk::IsDownloadShelfVisible() const { | 1075 bool BrowserWindowGtk::IsDownloadShelfVisible() const { |
| 1072 return download_shelf_.get() && download_shelf_->IsShowing(); | 1076 return download_shelf_.get() && download_shelf_->IsShowing(); |
| 1073 } | 1077 } |
| 1074 | 1078 |
| 1075 DownloadShelf* BrowserWindowGtk::GetDownloadShelf() { | 1079 DownloadShelf* BrowserWindowGtk::GetDownloadShelf() { |
| 1076 if (!download_shelf_.get()) | 1080 if (!download_shelf_.get()) |
| 1077 download_shelf_.reset(new DownloadShelfGtk(browser_.get(), | 1081 download_shelf_.reset(new DownloadShelfGtk(browser_.get(), |
| 1078 render_area_vbox_)); | 1082 render_area_vbox_)); |
| 1079 return download_shelf_.get(); | 1083 return download_shelf_.get(); |
| 1080 } | 1084 } |
| (...skipping 1466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2547 wm_type == ui::WM_OPENBOX || | 2551 wm_type == ui::WM_OPENBOX || |
| 2548 wm_type == ui::WM_XFWM4); | 2552 wm_type == ui::WM_XFWM4); |
| 2549 } | 2553 } |
| 2550 | 2554 |
| 2551 // static | 2555 // static |
| 2552 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { | 2556 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { |
| 2553 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); | 2557 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); |
| 2554 browser_window_gtk->Init(); | 2558 browser_window_gtk->Init(); |
| 2555 return browser_window_gtk; | 2559 return browser_window_gtk; |
| 2556 } | 2560 } |
| OLD | NEW |