| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 1011 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1022 | 1022 |
| 1023 void BrowserWindowGtk::ShowUpdateChromeDialog() { | 1023 void BrowserWindowGtk::ShowUpdateChromeDialog() { |
| 1024 UpdateRecommendedDialog::Show(window_); | 1024 UpdateRecommendedDialog::Show(window_); |
| 1025 } | 1025 } |
| 1026 | 1026 |
| 1027 void BrowserWindowGtk::ShowBookmarkBubble(const GURL& url, | 1027 void BrowserWindowGtk::ShowBookmarkBubble(const GURL& url, |
| 1028 bool already_bookmarked) { | 1028 bool already_bookmarked) { |
| 1029 toolbar_->GetLocationBarView()->ShowStarBubble(url, !already_bookmarked); | 1029 toolbar_->GetLocationBarView()->ShowStarBubble(url, !already_bookmarked); |
| 1030 } | 1030 } |
| 1031 | 1031 |
| 1032 void BrowserWindowGtk::ShowTranslateBubble( |
| 1033 content::WebContents* contents, |
| 1034 TranslateBubbleModel::ViewState view_state) { |
| 1035 } |
| 1036 |
| 1032 #if defined(ENABLE_ONE_CLICK_SIGNIN) | 1037 #if defined(ENABLE_ONE_CLICK_SIGNIN) |
| 1033 void BrowserWindowGtk::ShowOneClickSigninBubble( | 1038 void BrowserWindowGtk::ShowOneClickSigninBubble( |
| 1034 OneClickSigninBubbleType type, | 1039 OneClickSigninBubbleType type, |
| 1035 const string16& email, | 1040 const string16& email, |
| 1036 const string16& error_message, | 1041 const string16& error_message, |
| 1037 const StartSyncCallback& start_sync_callback) { | 1042 const StartSyncCallback& start_sync_callback) { |
| 1038 | 1043 |
| 1039 new OneClickSigninBubbleGtk(this, type, email, | 1044 new OneClickSigninBubbleGtk(this, type, email, |
| 1040 error_message, start_sync_callback); | 1045 error_message, start_sync_callback); |
| 1041 } | 1046 } |
| (...skipping 1364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2406 wm_type == ui::WM_OPENBOX || | 2411 wm_type == ui::WM_OPENBOX || |
| 2407 wm_type == ui::WM_XFWM4); | 2412 wm_type == ui::WM_XFWM4); |
| 2408 } | 2413 } |
| 2409 | 2414 |
| 2410 // static | 2415 // static |
| 2411 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { | 2416 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { |
| 2412 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); | 2417 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); |
| 2413 browser_window_gtk->Init(); | 2418 browser_window_gtk->Init(); |
| 2414 return browser_window_gtk; | 2419 return browser_window_gtk; |
| 2415 } | 2420 } |
| OLD | NEW |