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

Side by Side Diff: ui/views/controls/button/text_button.h

Issue 12013004: alternate ntp: unpinned bookmark bar in ntp (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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) 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_CONTROLS_BUTTON_TEXT_BUTTON_H_ 5 #ifndef UI_VIEWS_CONTROLS_BUTTON_TEXT_BUTTON_H_
6 #define UI_VIEWS_CONTROLS_BUTTON_TEXT_BUTTON_H_ 6 #define UI_VIEWS_CONTROLS_BUTTON_TEXT_BUTTON_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 virtual const ui::Animation* GetThemeAnimation() const OVERRIDE; 237 virtual const ui::Animation* GetThemeAnimation() const OVERRIDE;
238 virtual ui::NativeTheme::State GetBackgroundThemeState( 238 virtual ui::NativeTheme::State GetBackgroundThemeState(
239 ui::NativeTheme::ExtraParams* params) const OVERRIDE; 239 ui::NativeTheme::ExtraParams* params) const OVERRIDE;
240 virtual ui::NativeTheme::State GetForegroundThemeState( 240 virtual ui::NativeTheme::State GetForegroundThemeState(
241 ui::NativeTheme::ExtraParams* params) const OVERRIDE; 241 ui::NativeTheme::ExtraParams* params) const OVERRIDE;
242 242
243 virtual void GetExtraParams(ui::NativeTheme::ExtraParams* params) const; 243 virtual void GetExtraParams(ui::NativeTheme::ExtraParams* params) const;
244 244
245 virtual gfx::Rect GetTextBounds() const; 245 virtual gfx::Rect GetTextBounds() const;
246 246
247 // Compute the flags to use for rendering text strings. 247 int ComputeCanvasStringFlags() const;
248 virtual int ComputeCanvasStringFlags() const;
249 248
250 // Calculate the bounds of the content of this button, including any extra 249 // Calculate the bounds of the content of this button, including any extra
251 // width needed on top of the text width. 250 // width needed on top of the text width.
252 gfx::Rect GetContentBounds(int extra_width) const; 251 gfx::Rect GetContentBounds(int extra_width) const;
253 252
254 // The text string that is displayed in the button. 253 // The text string that is displayed in the button.
255 string16 text_; 254 string16 text_;
256 255
257 // The size of the text string. 256 // The size of the text string.
258 gfx::Size text_size_; 257 gfx::Size text_size_;
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 // Overridden from TextButton: 430 // Overridden from TextButton:
432 virtual void GetExtraParams( 431 virtual void GetExtraParams(
433 ui::NativeTheme::ExtraParams* params) const OVERRIDE; 432 ui::NativeTheme::ExtraParams* params) const OVERRIDE;
434 433
435 DISALLOW_COPY_AND_ASSIGN(NativeTextButton); 434 DISALLOW_COPY_AND_ASSIGN(NativeTextButton);
436 }; 435 };
437 436
438 } // namespace views 437 } // namespace views
439 438
440 #endif // UI_VIEWS_CONTROLS_BUTTON_TEXT_BUTTON_H_ 439 #endif // UI_VIEWS_CONTROLS_BUTTON_TEXT_BUTTON_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/ntp/ntp_resource_cache.cc ('k') | ui/views/controls/button/text_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698