| 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 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1062 TaskManagerGtk::Show(true); | 1062 TaskManagerGtk::Show(true); |
| 1063 } | 1063 } |
| 1064 #endif // defined(WEBUI_TASK_MANAGER) | 1064 #endif // defined(WEBUI_TASK_MANAGER) |
| 1065 } | 1065 } |
| 1066 | 1066 |
| 1067 void BrowserWindowGtk::ShowBookmarkBubble(const GURL& url, | 1067 void BrowserWindowGtk::ShowBookmarkBubble(const GURL& url, |
| 1068 bool already_bookmarked) { | 1068 bool already_bookmarked) { |
| 1069 toolbar_->GetLocationBarView()->ShowStarBubble(url, !already_bookmarked); | 1069 toolbar_->GetLocationBarView()->ShowStarBubble(url, !already_bookmarked); |
| 1070 } | 1070 } |
| 1071 | 1071 |
| 1072 void BrowserWindowGtk::ShowChromeToMobileBubble() { |
| 1073 NOTIMPLEMENTED(); |
| 1074 } |
| 1075 |
| 1072 bool BrowserWindowGtk::IsDownloadShelfVisible() const { | 1076 bool BrowserWindowGtk::IsDownloadShelfVisible() const { |
| 1073 return download_shelf_.get() && download_shelf_->IsShowing(); | 1077 return download_shelf_.get() && download_shelf_->IsShowing(); |
| 1074 } | 1078 } |
| 1075 | 1079 |
| 1076 DownloadShelf* BrowserWindowGtk::GetDownloadShelf() { | 1080 DownloadShelf* BrowserWindowGtk::GetDownloadShelf() { |
| 1077 if (!download_shelf_.get()) | 1081 if (!download_shelf_.get()) |
| 1078 download_shelf_.reset(new DownloadShelfGtk(browser_.get(), | 1082 download_shelf_.reset(new DownloadShelfGtk(browser_.get(), |
| 1079 render_area_vbox_)); | 1083 render_area_vbox_)); |
| 1080 return download_shelf_.get(); | 1084 return download_shelf_.get(); |
| 1081 } | 1085 } |
| (...skipping 1477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2559 wm_type == ui::WM_OPENBOX || | 2563 wm_type == ui::WM_OPENBOX || |
| 2560 wm_type == ui::WM_XFWM4); | 2564 wm_type == ui::WM_XFWM4); |
| 2561 } | 2565 } |
| 2562 | 2566 |
| 2563 // static | 2567 // static |
| 2564 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { | 2568 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { |
| 2565 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); | 2569 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); |
| 2566 browser_window_gtk->Init(); | 2570 browser_window_gtk->Init(); |
| 2567 return browser_window_gtk; | 2571 return browser_window_gtk; |
| 2568 } | 2572 } |
| OLD | NEW |