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

Unified Diff: chrome/browser/ui/views/tabs/tab.cc

Issue 1336823003: Move chrome::HostDesktopType to ui::HostDesktopType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@base_session_service_delegate_impl
Patch Set: Fix build on Mac and CrOS Created 5 years, 3 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/ui/views/tabs/tab.cc
diff --git a/chrome/browser/ui/views/tabs/tab.cc b/chrome/browser/ui/views/tabs/tab.cc
index a22268969972ed432dc0ac892fda3c6c16c572e5..8536f1e5e89c02ea58050f1349ec3e5388aa2c9b 100644
--- a/chrome/browser/ui/views/tabs/tab.cc
+++ b/chrome/browser/ui/views/tabs/tab.cc
@@ -178,7 +178,7 @@ void DrawIconCenter(gfx::Canvas* canvas,
icon_height, filter, paint);
}
-chrome::HostDesktopType GetHostDesktopType(views::View* view) {
+ui::HostDesktopType GetHostDesktopType(views::View* view) {
// Widget is NULL when tabs are detached.
views::Widget* widget = view->GetWidget();
return chrome::GetHostDesktopTypeForNativeView(
@@ -1186,7 +1186,7 @@ void Tab::PaintInactiveTabBackground(gfx::Canvas* canvas) {
GetTabIdAndFrameId(widget, &tab_id, &frame_id);
// Explicitly map the id so we cache correctly.
- const chrome::HostDesktopType host_desktop_type = GetHostDesktopType(this);
+ const ui::HostDesktopType host_desktop_type = GetHostDesktopType(this);
tab_id = chrome::MapThemeImage(host_desktop_type, tab_id);
// HasCustomImage() is only true if the theme provides the image. However,

Powered by Google App Engine
This is Rietveld 408576698