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

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

Issue 10827271: Replace views::Event with ui::Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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) 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 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 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ui/views/controls/button/button.h" 9 #include "ui/views/controls/button/button.h"
10 #include "ui/views/view.h" 10 #include "ui/views/view.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 void SetImage(gfx::ImageSkia* image); 65 void SetImage(gfx::ImageSkia* image);
66 66
67 // Captures the image, as if the button was pressed. 67 // Captures the image, as if the button was pressed.
68 void CaptureImage(); 68 void CaptureImage();
69 69
70 // Overridden from views::View: 70 // Overridden from views::View:
71 virtual gfx::Size GetPreferredSize() OVERRIDE; 71 virtual gfx::Size GetPreferredSize() OVERRIDE;
72 72
73 // Overridden from views::ButtonListener. 73 // Overridden from views::ButtonListener.
74 virtual void ButtonPressed(views::Button* sender, 74 virtual void ButtonPressed(views::Button* sender,
75 const views::Event& event) OVERRIDE; 75 const ui::Event& event) OVERRIDE;
76 76
77 bool is_capturing() const { return is_capturing_; } 77 bool is_capturing() const { return is_capturing_; }
78 78
79 void set_show_title(bool show) { show_title_ = show; } 79 void set_show_title(bool show) { show_title_ = show; }
80 80
81 private: 81 private:
82 // Initializes layout manager for this view. 82 // Initializes layout manager for this view.
83 void InitLayout(); 83 void InitLayout();
84 84
85 // For automation purposes. 85 // For automation purposes.
(...skipping 12 matching lines...) Expand all
98 bool show_title_; 98 bool show_title_;
99 99
100 Delegate* delegate_; 100 Delegate* delegate_;
101 101
102 DISALLOW_COPY_AND_ASSIGN(TakePhotoView); 102 DISALLOW_COPY_AND_ASSIGN(TakePhotoView);
103 }; 103 };
104 104
105 } // namespace chromeos 105 } // namespace chromeos
106 106
107 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_TAKE_PHOTO_VIEW_H_ 107 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_TAKE_PHOTO_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/simple_web_view_dialog.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