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

Side by Side Diff: chrome/browser/chromeos/login/take_photo_view.h

Issue 8638016: Add OVERRIDE to chrome/browser/chromeos/. (Closed) Base URL: svn://svn.chromium.org/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
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 CHROME_BROWSER_CHROMEOS_LOGIN_TAKE_PHOTO_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_TAKE_PHOTO_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_TAKE_PHOTO_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_TAKE_PHOTO_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h"
9 #include "views/controls/button/button.h" 10 #include "views/controls/button/button.h"
10 #include "views/view.h" 11 #include "views/view.h"
11 12
12 class PhotoCaptureObserver; 13 class PhotoCaptureObserver;
13 class SkBitmap; 14 class SkBitmap;
14 15
15 namespace views { 16 namespace views {
16 class ImageButton; 17 class ImageButton;
17 class Label; 18 class Label;
18 } // namespace views 19 } // namespace views
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // Returns the currently selected image. 58 // Returns the currently selected image.
58 const SkBitmap& GetImage() const; 59 const SkBitmap& GetImage() const;
59 60
60 // Sets the image indicating that the view is used only for image preview. 61 // Sets the image indicating that the view is used only for image preview.
61 void SetImage(SkBitmap* image); 62 void SetImage(SkBitmap* image);
62 63
63 // Captures the image, as if the button was pressed. 64 // Captures the image, as if the button was pressed.
64 void CaptureImage(); 65 void CaptureImage();
65 66
66 // Overridden from views::View: 67 // Overridden from views::View:
67 virtual gfx::Size GetPreferredSize(); 68 virtual gfx::Size GetPreferredSize() OVERRIDE;
68 69
69 // Overridden from views::ButtonListener. 70 // Overridden from views::ButtonListener.
70 virtual void ButtonPressed(views::Button* sender, const views::Event& event); 71 virtual void ButtonPressed(views::Button* sender,
72 const views::Event& event) OVERRIDE;
71 73
72 bool is_capturing() const { return is_capturing_; } 74 bool is_capturing() const { return is_capturing_; }
73 75
74 void set_show_title(bool show) { show_title_ = show; } 76 void set_show_title(bool show) { show_title_ = show; }
75 77
76 private: 78 private:
77 // Initializes layout manager for this view. 79 // Initializes layout manager for this view.
78 void InitLayout(); 80 void InitLayout();
79 81
80 // For automation purposes. 82 // For automation purposes.
(...skipping 12 matching lines...) Expand all
93 bool show_title_; 95 bool show_title_;
94 96
95 Delegate* delegate_; 97 Delegate* delegate_;
96 98
97 DISALLOW_COPY_AND_ASSIGN(TakePhotoView); 99 DISALLOW_COPY_AND_ASSIGN(TakePhotoView);
98 }; 100 };
99 101
100 } // namespace chromeos 102 } // namespace chromeos
101 103
102 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_TAKE_PHOTO_VIEW_H_ 104 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_TAKE_PHOTO_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698