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

Unified Diff: ui/views/controls/button/label_button.h

Issue 11262002: Merge TextButton and LabelButton border images util structs, etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add friend tests, remove unused variable. Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/controls/button/border_images.cc ('k') | ui/views/controls/button/label_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/label_button.h
diff --git a/ui/views/controls/button/label_button.h b/ui/views/controls/button/label_button.h
index 70b464a61ffe7031fbb406c21d88228a091d9f7a..4bd4e30ced30089c34f3642d794c22cd9f3f2322 100644
--- a/ui/views/controls/button/label_button.h
+++ b/ui/views/controls/button/label_button.h
@@ -55,6 +55,12 @@ class VIEWS_EXPORT LabelButton : public CustomButton,
bool native_theme() const { return native_theme_; }
void SetNativeTheme(bool native_theme);
+ private:
+ FRIEND_TEST_ALL_PREFIXES(LabelButtonTest, Init);
+ FRIEND_TEST_ALL_PREFIXES(LabelButtonTest, Label);
+ FRIEND_TEST_ALL_PREFIXES(LabelButtonTest, Image);
+ FRIEND_TEST_ALL_PREFIXES(LabelButtonTest, LabelAndImage);
+
// Overridden from CustomButton:
virtual void StateChanged() OVERRIDE;
@@ -64,7 +70,6 @@ class VIEWS_EXPORT LabelButton : public CustomButton,
virtual std::string GetClassName() const OVERRIDE;
virtual void ChildPreferredSizeChanged(View* child) OVERRIDE;
- protected:
// Overridden from NativeThemeDelegate:
virtual ui::NativeTheme::Part GetThemePart() const OVERRIDE;
virtual gfx::Rect GetThemePaintRect() const OVERRIDE;
@@ -79,10 +84,6 @@ class VIEWS_EXPORT LabelButton : public CustomButton,
// Fill |params| with information about the button.
virtual void GetExtraParams(ui::NativeTheme::ExtraParams* params) const;
- private:
- FRIEND_TEST_ALL_PREFIXES(LabelButtonTest, Init);
- FRIEND_TEST_ALL_PREFIXES(LabelButtonTest, LabelAndImage);
-
// The image and label shown in the button.
ImageView* image_;
Label* label_;
« no previous file with comments | « ui/views/controls/button/border_images.cc ('k') | ui/views/controls/button/label_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698