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

Unified Diff: views/controls/scrollbar/native_scroll_bar_win.h

Issue 2812026: Auto-size the views version of the options dialog. (Closed)
Patch Set: Fix autosizing issue with gtk pref pages in chromeos options dialog. Created 10 years, 6 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 | « views/controls/native_control.cc ('k') | views/controls/scrollbar/native_scroll_bar_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/scrollbar/native_scroll_bar_win.h
diff --git a/views/controls/scrollbar/native_scroll_bar_win.h b/views/controls/scrollbar/native_scroll_bar_win.h
index 566f036c60a34d6dc14672f5d485bc3109f31d83..ba7dc25ed47b637039a2040fa8015074d5d4cdff 100644
--- a/views/controls/scrollbar/native_scroll_bar_win.h
+++ b/views/controls/scrollbar/native_scroll_bar_win.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -51,7 +51,12 @@ class NativeScrollBarWin : public NativeControlWin,
// 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
// without having to do anything special in the high level hwnd.
- ScrollBarContainer* sb_container_;
+ scoped_ptr<ScrollBarContainer> sb_container_;
+
+ // Last scrollbar state we wrote to the scrollbar. We keep it here, so we can
+ // reinitialize the scrollbar to its previous state in case it gets hidden and
+ // recreated.
+ SCROLLINFO scroll_info_;
DISALLOW_COPY_AND_ASSIGN(NativeScrollBarWin);
};
@@ -59,4 +64,3 @@ class NativeScrollBarWin : public NativeControlWin,
} // namespace views
#endif // #ifndef VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_WIN_H_
-
« no previous file with comments | « views/controls/native_control.cc ('k') | views/controls/scrollbar/native_scroll_bar_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698