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

Unified Diff: chrome/browser/ui/views/task_manager_view.cc

Issue 7834048: Preliminary work to allow Chrome to build with USE_AURA (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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/task_manager_view.cc
===================================================================
--- chrome/browser/ui/views/task_manager_view.cc (revision 99456)
+++ chrome/browser/ui/views/task_manager_view.cc (working copy)
@@ -611,6 +611,7 @@
}
bool TaskManagerView::ExecuteWindowsCommand(int command_id) {
+#if defined(OS_WIN) && !defined(USE_AURA)
if (command_id == IDC_ALWAYS_ON_TOP) {
is_always_on_top_ = !is_always_on_top_;
@@ -639,6 +640,7 @@
}
return true;
}
+#endif
sky 2011/09/06 17:22:48 #else NOTIMPLEMENTED?
return false;
}
@@ -735,6 +737,7 @@
}
void TaskManagerView::AddAlwaysOnTopSystemMenuItem() {
+#if defined(OS_WIN) && !defined(USE_AURA)
// The Win32 API requires that we own the text.
always_on_top_menu_text_ =
UTF16ToWide(l10n_util::GetStringUTF16(IDS_ALWAYS_ON_TOP));
@@ -764,6 +767,7 @@
menu_info.wID = IDC_ALWAYS_ON_TOP;
menu_info.dwTypeData = const_cast<wchar_t*>(always_on_top_menu_text_.c_str());
::InsertMenuItem(system_menu, index, TRUE, &menu_info);
+#endif
sky 2011/09/06 17:22:48 #else NOTIMPLEMENTED?
}
bool TaskManagerView::GetSavedAlwaysOnTopState(bool* always_on_top) const {

Powered by Google App Engine
This is Rietveld 408576698