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

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

Issue 9562038: ui/gfx: Make gfx::Canvas inherit from gfx::CanvasSkia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes Created 8 years, 9 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BASE_SCROLL_BAR_H_ 5 #ifndef UI_VIEWS_CONTROLS_SCROLLBAR_BASE_SCROLL_BAR_H_
6 #define UI_VIEWS_CONTROLS_SCROLLBAR_BASE_SCROLL_BAR_H_ 6 #define UI_VIEWS_CONTROLS_SCROLLBAR_BASE_SCROLL_BAR_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ui/views/context_menu_controller.h" 9 #include "ui/views/context_menu_controller.h"
10 #include "ui/views/controls/button/image_button.h" 10 #include "ui/views/controls/button/image_button.h"
11 #include "ui/views/controls/menu/menu_delegate.h" 11 #include "ui/views/controls/menu/menu_delegate.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 const gfx::Point& p, 77 const gfx::Point& p,
78 bool is_mouse_gesture) OVERRIDE; 78 bool is_mouse_gesture) OVERRIDE;
79 79
80 // Menu::Delegate overrides: 80 // Menu::Delegate overrides:
81 virtual string16 GetLabel(int id) const OVERRIDE; 81 virtual string16 GetLabel(int id) const OVERRIDE;
82 virtual bool IsCommandEnabled(int id) const OVERRIDE; 82 virtual bool IsCommandEnabled(int id) const OVERRIDE;
83 virtual void ExecuteCommand(int id) OVERRIDE; 83 virtual void ExecuteCommand(int id) OVERRIDE;
84 84
85 protected: 85 protected:
86 // View overrides: 86 // View overrides:
87 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE = 0; 87 virtual void OnPaint(gfx::CanvasSkia* canvas) OVERRIDE = 0;
88 88
89 BaseScrollBarThumb* GetThumb() const; 89 BaseScrollBarThumb* GetThumb() const;
90 90
91 CustomButton::ButtonState GetThumbTrackState() const; 91 CustomButton::ButtonState GetThumbTrackState() const;
92 92
93 // Wrapper functions that calls the controller. We need this since native 93 // Wrapper functions that calls the controller. We need this since native
94 // scrollbars wrap around a different scrollbar. When calling the controller 94 // scrollbars wrap around a different scrollbar. When calling the controller
95 // we need to pass in the appropriate scrollbar. For normal scrollbars it's 95 // we need to pass in the appropriate scrollbar. For normal scrollbars it's
96 // the |this| scrollbar, for native scrollbars it's the native scrollbar used 96 // the |this| scrollbar, for native scrollbars it's the native scrollbar used
97 // to create this. 97 // to create this.
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 int context_menu_mouse_position_; 150 int context_menu_mouse_position_;
151 151
152 scoped_ptr<MenuRunner> menu_runner_; 152 scoped_ptr<MenuRunner> menu_runner_;
153 153
154 DISALLOW_COPY_AND_ASSIGN(BaseScrollBar); 154 DISALLOW_COPY_AND_ASSIGN(BaseScrollBar);
155 }; 155 };
156 156
157 } // namespace views 157 } // namespace views
158 158
159 #endif // UI_VIEWS_CONTROLS_SCROLLBAR_BASE_SCROLL_BAR_H_ 159 #endif // UI_VIEWS_CONTROLS_SCROLLBAR_BASE_SCROLL_BAR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698