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

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

Issue 164653002: Remove Unused AsTextButtonBorder RTTI helper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « ui/views/border.cc ('k') | ui/views/controls/button/text_button.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_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 17 matching lines...) Expand all
28 virtual ~TextButtonBorder(); 28 virtual ~TextButtonBorder();
29 29
30 void SetInsets(const gfx::Insets& insets); 30 void SetInsets(const gfx::Insets& insets);
31 31
32 // Border: 32 // Border:
33 virtual void Paint(const View& view, gfx::Canvas* canvas) OVERRIDE; 33 virtual void Paint(const View& view, gfx::Canvas* canvas) OVERRIDE;
34 virtual gfx::Insets GetInsets() const OVERRIDE; 34 virtual gfx::Insets GetInsets() const OVERRIDE;
35 virtual gfx::Size GetMinimumSize() const OVERRIDE; 35 virtual gfx::Size GetMinimumSize() const OVERRIDE;
36 36
37 private: 37 private:
38 // Border:
39 virtual TextButtonBorder* AsTextButtonBorder() OVERRIDE;
40 virtual const TextButtonBorder* AsTextButtonBorder() const OVERRIDE;
41
42 gfx::Insets insets_; 38 gfx::Insets insets_;
43 39
44 DISALLOW_COPY_AND_ASSIGN(TextButtonBorder); 40 DISALLOW_COPY_AND_ASSIGN(TextButtonBorder);
45 }; 41 };
46 42
47 43
48 // A Border subclass that paints a TextButton's background layer -- basically 44 // A Border subclass that paints a TextButton's background layer -- basically
49 // the button frame in the hot/pushed states. 45 // the button frame in the hot/pushed states.
50 // 46 //
51 // Note that this type of button is not focusable by default and will not be 47 // Note that this type of button is not focusable by default and will not be
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 // True if the icon and the text are aligned along both the left and right 382 // True if the icon and the text are aligned along both the left and right
387 // margins of the button. 383 // margins of the button.
388 bool full_justification_; 384 bool full_justification_;
389 385
390 DISALLOW_COPY_AND_ASSIGN(TextButton); 386 DISALLOW_COPY_AND_ASSIGN(TextButton);
391 }; 387 };
392 388
393 } // namespace views 389 } // namespace views
394 390
395 #endif // UI_VIEWS_CONTROLS_BUTTON_TEXT_BUTTON_H_ 391 #endif // UI_VIEWS_CONTROLS_BUTTON_TEXT_BUTTON_H_
OLDNEW
« no previous file with comments | « ui/views/border.cc ('k') | ui/views/controls/button/text_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698