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

Side by Side Diff: ui/views/views_delegate.h

Issue 2744463002: Add VectorIconButton functionality to ImageButton. (Closed)
Patch Set: wip: address high-level comments Created 3 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
OLDNEW
1 // Copyright (c) 2012 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_VIEWS_DELEGATE_H_ 5 #ifndef UI_VIEWS_VIEWS_DELEGATE_H_
6 #define UI_VIEWS_VIEWS_DELEGATE_H_ 6 #define UI_VIEWS_VIEWS_DELEGATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 // Returns a blocking pool task runner given a TaskRunnerType. 245 // Returns a blocking pool task runner given a TaskRunnerType.
246 virtual scoped_refptr<base::TaskRunner> GetBlockingPoolTaskRunner(); 246 virtual scoped_refptr<base::TaskRunner> GetBlockingPoolTaskRunner();
247 247
248 // Returns the insets metric according to the given enumeration element. 248 // Returns the insets metric according to the given enumeration element.
249 virtual gfx::Insets GetInsetsMetric(InsetsMetric metric) const; 249 virtual gfx::Insets GetInsetsMetric(InsetsMetric metric) const;
250 250
251 // Returns the distance metric between elements according to the given 251 // Returns the distance metric between elements according to the given
252 // enumeration element. 252 // enumeration element.
253 virtual int GetDistanceMetric(DistanceMetric metric) const; 253 virtual int GetDistanceMetric(DistanceMetric metric) const;
254 254
255 // Returns the margins that should be placed around a button's content.
256 virtual gfx::Insets GetButtonMargins() const;
257
255 protected: 258 protected:
256 ViewsDelegate(); 259 ViewsDelegate();
257 260
258 private: 261 private:
259 std::unique_ptr<ViewsTouchEditingControllerFactory> views_tsc_factory_; 262 std::unique_ptr<ViewsTouchEditingControllerFactory> views_tsc_factory_;
260 263
261 #if defined(USE_AURA) 264 #if defined(USE_AURA)
262 std::unique_ptr<TouchSelectionMenuRunnerViews> touch_selection_menu_runner_; 265 std::unique_ptr<TouchSelectionMenuRunnerViews> touch_selection_menu_runner_;
263 266
264 DesktopWindowTreeHostFactory desktop_window_tree_host_factory_; 267 DesktopWindowTreeHostFactory desktop_window_tree_host_factory_;
265 #endif 268 #endif
266 269
267 NativeWidgetFactory native_widget_factory_; 270 NativeWidgetFactory native_widget_factory_;
268 271
269 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); 272 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate);
270 }; 273 };
271 274
272 } // namespace views 275 } // namespace views
273 276
274 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ 277 #endif // UI_VIEWS_VIEWS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698