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

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

Issue 7523063: Add a hook for capturing a user profile photo and saving it to file and local state. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 4 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
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 "views/controls/button/button.h" 9 #include "views/controls/button/button.h"
10 #include "views/view.h" 10 #include "views/view.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 // Captures the image, as if the button was pressed. 62 // Captures the image, as if the button was pressed.
63 void CaptureImage(); 63 void CaptureImage();
64 64
65 // Overridden from views::View: 65 // Overridden from views::View:
66 virtual gfx::Size GetPreferredSize(); 66 virtual gfx::Size GetPreferredSize();
67 67
68 // Overridden from views::ButtonListener. 68 // Overridden from views::ButtonListener.
69 virtual void ButtonPressed(views::Button* sender, const views::Event& event); 69 virtual void ButtonPressed(views::Button* sender, const views::Event& event);
70 70
71 // For automation purposes
dennis_jeffrey 2011/07/29 20:10:06 nit: add period at end of line.
frankf 2011/07/29 21:50:40 Done.
72 virtual void ButtonPressed();
73
71 bool is_capturing() const { return is_capturing_; } 74 bool is_capturing() const { return is_capturing_; }
72 75
73 void set_show_title(bool show) { show_title_ = show; } 76 void set_show_title(bool show) { show_title_ = show; }
74 77
75 private: 78 private:
76 // Initializes layout manager for this view. 79 // Initializes layout manager for this view.
77 void InitLayout(); 80 void InitLayout();
78 81
79 views::Label* title_label_; 82 views::Label* title_label_;
80 views::ImageButton* snapshot_button_; 83 views::ImageButton* snapshot_button_;
81 CameraImageView* user_image_; 84 CameraImageView* user_image_;
82 85
83 // Indicates that we're in capturing mode. When |false|, new video frames 86 // Indicates that we're in capturing mode. When |false|, new video frames
84 // are not shown to user if received. 87 // are not shown to user if received.
85 bool is_capturing_; 88 bool is_capturing_;
86 89
87 // Whether title label is present or not. 90 // Whether title label is present or not.
88 bool show_title_; 91 bool show_title_;
89 92
90 Delegate* delegate_; 93 Delegate* delegate_;
91 94
92 DISALLOW_COPY_AND_ASSIGN(TakePhotoView); 95 DISALLOW_COPY_AND_ASSIGN(TakePhotoView);
93 }; 96 };
94 97
95 } // namespace chromeos 98 } // namespace chromeos
96 99
97 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_TAKE_PHOTO_VIEW_H_ 100 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_TAKE_PHOTO_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698