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

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: Rebased 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"
11 11
12 class PhotoCaptureObserver;
12 class SkBitmap; 13 class SkBitmap;
13 14
14 namespace views { 15 namespace views {
15 class ImageButton; 16 class ImageButton;
16 class Label; 17 class Label;
17 } // namespace views 18 } // namespace views
18 19
19 namespace chromeos { 20 namespace chromeos {
20 21
21 class CameraImageView; 22 class CameraImageView;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 virtual void ButtonPressed(views::Button* sender, const views::Event& event); 70 virtual void ButtonPressed(views::Button* sender, const views::Event& event);
70 71
71 bool is_capturing() const { return is_capturing_; } 72 bool is_capturing() const { return is_capturing_; }
72 73
73 void set_show_title(bool show) { show_title_ = show; } 74 void set_show_title(bool show) { show_title_ = show; }
74 75
75 private: 76 private:
76 // Initializes layout manager for this view. 77 // Initializes layout manager for this view.
77 void InitLayout(); 78 void InitLayout();
78 79
80 // For automation purposes.
81 friend class ::PhotoCaptureObserver;
82 void FlipCapturingState();
83
79 views::Label* title_label_; 84 views::Label* title_label_;
80 views::ImageButton* snapshot_button_; 85 views::ImageButton* snapshot_button_;
81 CameraImageView* user_image_; 86 CameraImageView* user_image_;
82 87
83 // Indicates that we're in capturing mode. When |false|, new video frames 88 // Indicates that we're in capturing mode. When |false|, new video frames
84 // are not shown to user if received. 89 // are not shown to user if received.
85 bool is_capturing_; 90 bool is_capturing_;
86 91
87 // Whether title label is present or not. 92 // Whether title label is present or not.
88 bool show_title_; 93 bool show_title_;
89 94
90 Delegate* delegate_; 95 Delegate* delegate_;
91 96
92 DISALLOW_COPY_AND_ASSIGN(TakePhotoView); 97 DISALLOW_COPY_AND_ASSIGN(TakePhotoView);
93 }; 98 };
94 99
95 } // namespace chromeos 100 } // namespace chromeos
96 101
97 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_TAKE_PHOTO_VIEW_H_ 102 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_TAKE_PHOTO_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/automation/testing_automation_provider_chromeos.cc ('k') | chrome/browser/chromeos/login/take_photo_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698