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

Unified Diff: chrome/browser/bookmarks/bookmark_drop_info.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
« no previous file with comments | « chrome/browser/automation/automation_provider.cc ('k') | chrome/browser/download/download_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/bookmarks/bookmark_drop_info.cc
===================================================================
--- chrome/browser/bookmarks/bookmark_drop_info.cc (revision 99764)
+++ chrome/browser/bookmarks/bookmark_drop_info.cc (working copy)
@@ -30,7 +30,7 @@
is_control_down_ = event.IsControlDown();
last_y_ = event.y();
-#if defined(OS_WIN)
+#if defined(OS_WIN) && !defined(USE_AURA)
RECT client_rect;
GetClientRect(wnd_, &client_rect);
bool scroll_down = (last_y_ >= client_rect.bottom - views::kAutoscrollSize);
@@ -53,7 +53,7 @@
}
void BookmarkDropInfo::Scroll() {
-#if defined(OS_WIN)
+#if defined(OS_WIN) && !defined(USE_AURA)
SendMessage(wnd_, WM_VSCROLL, scroll_up_ ? SB_LINEUP : SB_LINEDOWN, NULL);
Scrolled();
#else
« no previous file with comments | « chrome/browser/automation/automation_provider.cc ('k') | chrome/browser/download/download_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698