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

Side by Side Diff: ui/views/controls/scrollbar/overlay_scroll_bar.h

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More compile fix for ToT Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_CONTROLS_SCROLLBAR_OVERLAY_SCROLL_BAR_H_ 5 #ifndef UI_VIEWS_CONTROLS_SCROLLBAR_OVERLAY_SCROLL_BAR_H_
6 #define UI_VIEWS_CONTROLS_SCROLLBAR_OVERLAY_SCROLL_BAR_H_ 6 #define UI_VIEWS_CONTROLS_SCROLLBAR_OVERLAY_SCROLL_BAR_H_
7 7
8 #include "ui/gfx/animation/slide_animation.h" 8 #include "ui/gfx/animation/slide_animation.h"
9 #include "ui/views/controls/scrollbar/base_scroll_bar.h" 9 #include "ui/views/controls/scrollbar/base_scroll_bar.h"
10 10
(...skipping 10 matching lines...) Expand all
21 virtual gfx::Rect GetTrackBounds() const OVERRIDE; 21 virtual gfx::Rect GetTrackBounds() const OVERRIDE;
22 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; 22 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
23 23
24 // ScrollBar overrides: 24 // ScrollBar overrides:
25 virtual int GetLayoutSize() const OVERRIDE; 25 virtual int GetLayoutSize() const OVERRIDE;
26 virtual int GetContentOverlapSize() const OVERRIDE; 26 virtual int GetContentOverlapSize() const OVERRIDE;
27 virtual void OnMouseEnteredScrollView(const ui::MouseEvent& event) OVERRIDE; 27 virtual void OnMouseEnteredScrollView(const ui::MouseEvent& event) OVERRIDE;
28 virtual void OnMouseExitedScrollView(const ui::MouseEvent& event) OVERRIDE; 28 virtual void OnMouseExitedScrollView(const ui::MouseEvent& event) OVERRIDE;
29 29
30 // View overrides: 30 // View overrides:
31 virtual gfx::Size GetPreferredSize() OVERRIDE; 31 virtual gfx::Size GetPreferredSize() const OVERRIDE;
32 virtual void Layout() OVERRIDE; 32 virtual void Layout() OVERRIDE;
33 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 33 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
34 34
35 private: 35 private:
36 gfx::SlideAnimation animation_; 36 gfx::SlideAnimation animation_;
37 DISALLOW_COPY_AND_ASSIGN(OverlayScrollBar); 37 DISALLOW_COPY_AND_ASSIGN(OverlayScrollBar);
38 }; 38 };
39 39
40 } // namespace views 40 } // namespace views
41 41
42 #endif // UI_VIEWS_CONTROLS_SCROLLBAR_OVERLAY_SCROLL_BAR_H_ 42 #endif // UI_VIEWS_CONTROLS_SCROLLBAR_OVERLAY_SCROLL_BAR_H_
OLDNEW
« no previous file with comments | « ui/views/controls/scrollbar/native_scroll_bar_views.cc ('k') | ui/views/controls/scrollbar/overlay_scroll_bar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698