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

Side by Side Diff: ui/native_theme/native_theme_base.h

Issue 2628043002: Gtk3: Render a GtkHeaderBar as the background of the tab strip (Closed)
Patch Set: Guard kFrameTopArea with #if defined(OS_LINUX) && !defined(OS_CHROMEOS) Created 3 years, 10 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
« no previous file with comments | « ui/native_theme/native_theme.h ('k') | ui/native_theme/native_theme_base.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_NATIVE_THEME_NATIVE_THEME_BASE_H_ 5 #ifndef UI_NATIVE_THEME_NATIVE_THEME_BASE_H_
6 #define UI_NATIVE_THEME_NATIVE_THEME_BASE_H_ 6 #define UI_NATIVE_THEME_NATIVE_THEME_BASE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 State state, 121 State state,
122 const gfx::Rect& rect, 122 const gfx::Rect& rect,
123 const InnerSpinButtonExtraParams& spin_button) const; 123 const InnerSpinButtonExtraParams& spin_button) const;
124 124
125 virtual void PaintProgressBar( 125 virtual void PaintProgressBar(
126 SkCanvas* canvas, 126 SkCanvas* canvas,
127 State state, 127 State state,
128 const gfx::Rect& rect, 128 const gfx::Rect& rect,
129 const ProgressBarExtraParams& progress_bar) const; 129 const ProgressBarExtraParams& progress_bar) const;
130 130
131 virtual void PaintFrameTopArea(
132 SkCanvas* canvas,
133 State state,
134 const gfx::Rect& rect,
135 const FrameTopAreaExtraParams& frame_top_area) const;
136
131 // Shrinks checkbox/radio button rect, if necessary, to make room for padding 137 // Shrinks checkbox/radio button rect, if necessary, to make room for padding
132 // and drop shadow. 138 // and drop shadow.
133 // TODO(mohsen): This is needed because checkboxes/radio buttons on Android 139 // TODO(mohsen): This is needed because checkboxes/radio buttons on Android
134 // have different padding from those on desktop Chrome. Get rid of this when 140 // have different padding from those on desktop Chrome. Get rid of this when
135 // crbug.com/530746 is resolved. 141 // crbug.com/530746 is resolved.
136 virtual void AdjustCheckboxRadioRectForPadding(SkRect* rect) const; 142 virtual void AdjustCheckboxRadioRectForPadding(SkRect* rect) const;
137 143
138 void set_scrollbar_button_length(int length) { 144 void set_scrollbar_button_length(int length) {
139 scrollbar_button_length_ = length; 145 scrollbar_button_length_ = length;
140 } 146 }
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 195
190 // The length of the arrow buttons, 0 means no buttons are drawn. 196 // The length of the arrow buttons, 0 means no buttons are drawn.
191 int scrollbar_button_length_; 197 int scrollbar_button_length_;
192 198
193 DISALLOW_COPY_AND_ASSIGN(NativeThemeBase); 199 DISALLOW_COPY_AND_ASSIGN(NativeThemeBase);
194 }; 200 };
195 201
196 } // namespace ui 202 } // namespace ui
197 203
198 #endif // UI_NATIVE_THEME_NATIVE_THEME_BASE_H_ 204 #endif // UI_NATIVE_THEME_NATIVE_THEME_BASE_H_
OLDNEW
« no previous file with comments | « ui/native_theme/native_theme.h ('k') | ui/native_theme/native_theme_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698