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

Unified Diff: chrome/views/native_scroll_bar.h

Issue 18757: Porting in chrome/views/ (Closed)
Patch Set: sync with trunk Created 11 years, 11 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/views/label.cc ('k') | chrome/views/scroll_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/views/native_scroll_bar.h
diff --git a/chrome/views/native_scroll_bar.h b/chrome/views/native_scroll_bar.h
index 3b9462109cf8f8850ceb78361693eef17b0d4489..8e2f1be1af731b25712835770c64417e5d85ed52 100644
--- a/chrome/views/native_scroll_bar.h
+++ b/chrome/views/native_scroll_bar.h
@@ -5,6 +5,8 @@
#ifndef CHROME_VIEWS_NATIVE_SCROLLBAR_H__
#define CHROME_VIEWS_NATIVE_SCROLLBAR_H__
+#include "build/build_config.h"
+
#include "chrome/views/scroll_bar.h"
namespace views {
@@ -48,9 +50,11 @@ class NativeScrollBar : public ScrollBar {
static int GetVerticalScrollBarWidth();
private:
+#if defined(OS_WIN)
// The sb_view_ takes care of keeping sb_container in sync with the
// view hierarchy
HWNDView* sb_view_;
+#endif // defined(OS_WIN)
// sb_container_ is a custom hwnd that we use to wrap the real
// windows scrollbar. We need to do this to get the scroll events
« no previous file with comments | « chrome/views/label.cc ('k') | chrome/views/scroll_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698