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

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

Issue 8439015: Make infobar controls focusable by default. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 | « chrome/browser/ui/views/infobars/infobar_view.cc ('k') | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 VIEWS_CONTROLS_BUTTON_TEXT_BUTTON_H_ 5 #ifndef VIEWS_CONTROLS_BUTTON_TEXT_BUTTON_H_
6 #define VIEWS_CONTROLS_BUTTON_TEXT_BUTTON_H_ 6 #define VIEWS_CONTROLS_BUTTON_TEXT_BUTTON_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 IconPlacement icon_placement() { return icon_placement_; } 341 IconPlacement icon_placement() { return icon_placement_; }
342 void set_icon_placement(IconPlacement icon_placement) { 342 void set_icon_placement(IconPlacement icon_placement) {
343 icon_placement_ = icon_placement; 343 icon_placement_ = icon_placement;
344 } 344 }
345 345
346 void set_ignore_minimum_size(bool ignore_minimum_size); 346 void set_ignore_minimum_size(bool ignore_minimum_size);
347 347
348 // Overridden from View: 348 // Overridden from View:
349 virtual gfx::Size GetPreferredSize() OVERRIDE; 349 virtual gfx::Size GetPreferredSize() OVERRIDE;
350 virtual std::string GetClassName() const OVERRIDE; 350 virtual std::string GetClassName() const OVERRIDE;
351 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE;
351 352
352 // Overridden from TextButtonBase: 353 // Overridden from TextButtonBase:
353 virtual void PaintButton(gfx::Canvas* canvas, PaintButtonMode mode) OVERRIDE; 354 virtual void PaintButton(gfx::Canvas* canvas, PaintButtonMode mode) OVERRIDE;
354 355
355 protected: 356 protected:
356 SkBitmap icon() const { return icon_; } 357 SkBitmap icon() const { return icon_; }
357 358
358 virtual const SkBitmap& GetImageToPaint() const; 359 virtual const SkBitmap& GetImageToPaint() const;
359 360
360 // Overridden from NativeThemeDelegate: 361 // Overridden from NativeThemeDelegate:
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 // Overridden from TextButton: 421 // Overridden from TextButton:
421 virtual void GetExtraParams( 422 virtual void GetExtraParams(
422 gfx::NativeTheme::ExtraParams* params) const OVERRIDE; 423 gfx::NativeTheme::ExtraParams* params) const OVERRIDE;
423 424
424 DISALLOW_COPY_AND_ASSIGN(NativeTextButton); 425 DISALLOW_COPY_AND_ASSIGN(NativeTextButton);
425 }; 426 };
426 427
427 } // namespace views 428 } // namespace views
428 429
429 #endif // VIEWS_CONTROLS_BUTTON_TEXT_BUTTON_H_ 430 #endif // VIEWS_CONTROLS_BUTTON_TEXT_BUTTON_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/infobars/infobar_view.cc ('k') | views/controls/button/text_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698