Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Unified Diff: chrome/browser/views/frame/opaque_browser_frame_view.cc

Issue 155242: Add temporary TabStripWrapper interface that is implemented by both TabStrip ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/views/frame/opaque_browser_frame_view.cc
===================================================================
--- chrome/browser/views/frame/opaque_browser_frame_view.cc (revision 20183)
+++ chrome/browser/views/frame/opaque_browser_frame_view.cc (working copy)
@@ -14,7 +14,7 @@
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/browser/views/frame/browser_frame.h"
#include "chrome/browser/views/frame/browser_view.h"
-#include "chrome/browser/views/tabs/tab_strip.h"
+#include "chrome/browser/views/tabs/tab_strip_wrapper.h"
#include "grit/app_resources.h"
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
@@ -200,7 +200,7 @@
// OpaqueBrowserFrameView, BrowserNonClientFrameView implementation:
gfx::Rect OpaqueBrowserFrameView::GetBoundsForTabStrip(
- TabStrip* tabstrip) const {
+ TabStripWrapper* tabstrip) const {
int tabstrip_x = browser_view_->ShouldShowOffTheRecordAvatar() ?
(otr_avatar_bounds_.right() + kOTRSideSpacing) :
NonClientBorderThickness();
@@ -208,7 +208,8 @@
(frame_->GetWindow()->IsMaximized() ?
kNewTabCaptionMaximizedSpacing : kNewTabCaptionRestoredSpacing);
return gfx::Rect(tabstrip_x, NonClientTopBorderHeight(),
- std::max(0, tabstrip_width), tabstrip->GetPreferredHeight());
+ std::max(0, tabstrip_width),
+ tabstrip->GetPreferredHeight());
}
void OpaqueBrowserFrameView::UpdateThrobber(bool running) {
@@ -366,14 +367,14 @@
return in_nonclient;
// Otherwise claim it only if it's in a non-tab portion of the tabstrip.
- if (l.y() > browser_view_->tabstrip()->bounds().bottom())
+ if (l.y() > browser_view_->tabstrip()->GetView()->bounds().bottom())
return false;
// We convert from our parent's coordinates since we assume we fill its bounds
// completely. We need to do this since we're not a parent of the tabstrip,
// meaning ConvertPointToView would otherwise return something bogus.
gfx::Point tabstrip_point(l);
- View::ConvertPointToView(GetParent(), browser_view_->tabstrip(),
+ View::ConvertPointToView(GetParent(), browser_view_->tabstrip()->GetView(),
&tabstrip_point);
return browser_view_->tabstrip()->PointIsWithinWindowCaption(tabstrip_point);
}
« no previous file with comments | « chrome/browser/views/frame/opaque_browser_frame_view.h ('k') | chrome/browser/views/tabs/browser_tab_strip.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698