| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/gtk/browser_window_gtk.h" | 5 #include "chrome/browser/gtk/browser_window_gtk.h" |
| 6 | 6 |
| 7 #include <gdk/gdkkeysyms.h> | 7 #include <gdk/gdkkeysyms.h> |
| 8 | 8 |
| 9 #include "app/resource_bundle.h" | 9 #include "app/resource_bundle.h" |
| 10 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
| (...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 int BrowserWindowGtk::GetExtraRenderViewHeight() const { | 679 int BrowserWindowGtk::GetExtraRenderViewHeight() const { |
| 680 int sum = infobar_container_->TotalHeightOfClosingBars(); | 680 int sum = infobar_container_->TotalHeightOfClosingBars(); |
| 681 if (bookmark_bar_->IsClosing()) | 681 if (bookmark_bar_->IsClosing()) |
| 682 sum += bookmark_bar_->GetHeight(); | 682 sum += bookmark_bar_->GetHeight(); |
| 683 if (download_shelf_.get() && download_shelf_->IsClosing()) { | 683 if (download_shelf_.get() && download_shelf_->IsClosing()) { |
| 684 sum += download_shelf_->GetHeight(); | 684 sum += download_shelf_->GetHeight(); |
| 685 } | 685 } |
| 686 return sum; | 686 return sum; |
| 687 } | 687 } |
| 688 | 688 |
| 689 void BrowserWindowGtk::TabContentsFocused(TabContents* tab_contents) { |
| 690 NOTIMPLEMENTED(); |
| 691 } |
| 692 |
| 689 void BrowserWindowGtk::ConfirmBrowserCloseWithPendingDownloads() { | 693 void BrowserWindowGtk::ConfirmBrowserCloseWithPendingDownloads() { |
| 690 NOTIMPLEMENTED(); | 694 NOTIMPLEMENTED(); |
| 691 browser_->InProgressDownloadResponse(false); | 695 browser_->InProgressDownloadResponse(false); |
| 692 } | 696 } |
| 693 | 697 |
| 694 void BrowserWindowGtk::Observe(NotificationType type, | 698 void BrowserWindowGtk::Observe(NotificationType type, |
| 695 const NotificationSource& source, | 699 const NotificationSource& source, |
| 696 const NotificationDetails& details) { | 700 const NotificationDetails& details) { |
| 697 if (type == NotificationType::BOOKMARK_BAR_VISIBILITY_PREF_CHANGED) { | 701 if (type == NotificationType::BOOKMARK_BAR_VISIBILITY_PREF_CHANGED) { |
| 698 MaybeShowBookmarkBar(browser_->GetSelectedTabContents()); | 702 MaybeShowBookmarkBar(browser_->GetSelectedTabContents()); |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1064 } | 1068 } |
| 1065 | 1069 |
| 1066 bool BrowserWindowGtk::IsTabStripSupported() { | 1070 bool BrowserWindowGtk::IsTabStripSupported() { |
| 1067 return browser_->SupportsWindowFeature(Browser::FEATURE_TABSTRIP); | 1071 return browser_->SupportsWindowFeature(Browser::FEATURE_TABSTRIP); |
| 1068 } | 1072 } |
| 1069 | 1073 |
| 1070 bool BrowserWindowGtk::IsToolbarSupported() { | 1074 bool BrowserWindowGtk::IsToolbarSupported() { |
| 1071 return browser_->SupportsWindowFeature(Browser::FEATURE_TOOLBAR) || | 1075 return browser_->SupportsWindowFeature(Browser::FEATURE_TOOLBAR) || |
| 1072 browser_->SupportsWindowFeature(Browser::FEATURE_LOCATIONBAR); | 1076 browser_->SupportsWindowFeature(Browser::FEATURE_LOCATIONBAR); |
| 1073 } | 1077 } |
| OLD | NEW |