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

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

Issue 10513009: Indicate focused state on text buttons with blue outline. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comment. Created 8 years, 6 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/base/native_theme/native_theme_base.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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 // 394 //
395 //////////////////////////////////////////////////////////////////////////////// 395 ////////////////////////////////////////////////////////////////////////////////
396 class VIEWS_EXPORT NativeTextButton : public TextButton { 396 class VIEWS_EXPORT NativeTextButton : public TextButton {
397 public: 397 public:
398 // The button's class name. 398 // The button's class name.
399 static const char kViewClassName[]; 399 static const char kViewClassName[];
400 400
401 explicit NativeTextButton(ButtonListener* listener); 401 explicit NativeTextButton(ButtonListener* listener);
402 NativeTextButton(ButtonListener* listener, const string16& text); 402 NativeTextButton(ButtonListener* listener, const string16& text);
403 403
404 // Overridden from View:
405 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE;
406
404 // Overridden from TextButton: 407 // Overridden from TextButton:
405 virtual gfx::Size GetMinimumSize() OVERRIDE; 408 virtual gfx::Size GetMinimumSize() OVERRIDE;
406 virtual std::string GetClassName() const OVERRIDE; 409 virtual std::string GetClassName() const OVERRIDE;
407 410
408 private: 411 private:
409 void Init(); 412 void Init();
410 413
411 // Overridden from View:
412 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE;
413
414 // Overridden from TextButton: 414 // Overridden from TextButton:
415 virtual void GetExtraParams( 415 virtual void GetExtraParams(
416 ui::NativeTheme::ExtraParams* params) const OVERRIDE; 416 ui::NativeTheme::ExtraParams* params) const OVERRIDE;
417 417
418 DISALLOW_COPY_AND_ASSIGN(NativeTextButton); 418 DISALLOW_COPY_AND_ASSIGN(NativeTextButton);
419 }; 419 };
420 420
421 } // namespace views 421 } // namespace views
422 422
423 #endif // UI_VIEWS_CONTROLS_BUTTON_TEXT_BUTTON_H_ 423 #endif // UI_VIEWS_CONTROLS_BUTTON_TEXT_BUTTON_H_
OLDNEW
« no previous file with comments | « ui/base/native_theme/native_theme_base.cc ('k') | ui/views/controls/button/text_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698