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

Side by Side Diff: chrome/browser/ui/views/crypto_module_password_dialog_view.h

Issue 8761010: fix broken linux_clang_chromeos_dbg build due to style violation. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: update Created 9 years 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 | « no previous file | chrome/browser/ui/views/crypto_module_password_dialog_view.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 CHROME_BROWSER_UI_VIEWS_CRYPTO_MODULE_PASSWORD_DIALOG_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_CRYPTO_MODULE_PASSWORD_DIALOG_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_CRYPTO_MODULE_PASSWORD_DIALOG_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_CRYPTO_MODULE_PASSWORD_DIALOG_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 16 matching lines...) Expand all
27 ///////////////////////////////////////////////////////////////////////// 27 /////////////////////////////////////////////////////////////////////////
28 class CryptoModulePasswordDialogView : public views::DialogDelegateView, 28 class CryptoModulePasswordDialogView : public views::DialogDelegateView,
29 public views::TextfieldController { 29 public views::TextfieldController {
30 public: 30 public:
31 CryptoModulePasswordDialogView( 31 CryptoModulePasswordDialogView(
32 const std::string& slot_name, 32 const std::string& slot_name,
33 browser::CryptoModulePasswordReason reason, 33 browser::CryptoModulePasswordReason reason,
34 const std::string& server, 34 const std::string& server,
35 const base::Callback<void(const char*)>& callback); 35 const base::Callback<void(const char*)>& callback);
36 36
37 virtual ~CryptoModulePasswordDialogView() {} 37 virtual ~CryptoModulePasswordDialogView();
38 38
39 // views::DialogDelegate: 39 // views::DialogDelegate:
40 virtual bool Accept(); 40 virtual bool Accept() OVERRIDE;
41 virtual bool Cancel(); 41 virtual bool Cancel() OVERRIDE;
42 string16 GetDialogButtonLabel( 42 string16 GetDialogButtonLabel(
Nikita (slow) 2011/12/01 15:48:01 Missing virtual here. http://build.chromium.org/p/
43 ui::DialogButton button) const; 43 ui::DialogButton button) const OVERRIDE;
44 44
45 45
46 // views::WidgetDelegate: 46 // views::WidgetDelegate:
47 virtual views::View* GetInitiallyFocusedView(); 47 virtual views::View* GetInitiallyFocusedView() OVERRIDE;
48 virtual bool IsModal() const; 48 virtual bool IsModal() const OVERRIDE;
49 virtual views::View* GetContentsView(); 49 virtual views::View* GetContentsView() OVERRIDE;
50 50
51 // views::View: 51 // views::View:
52 virtual string16 GetWindowTitle() const; 52 virtual string16 GetWindowTitle() const OVERRIDE;
53 53
54 // views::TextfieldController: 54 // views::TextfieldController:
55 virtual bool HandleKeyEvent(views::Textfield* sender, 55 virtual bool HandleKeyEvent(views::Textfield* sender,
56 const views::KeyEvent& keystroke); 56 const views::KeyEvent& keystroke) OVERRIDE;
57 virtual void ContentsChanged(views::Textfield* sender, 57 virtual void ContentsChanged(views::Textfield* sender,
58 const string16& new_contents) {} 58 const string16& new_contents) OVERRIDE;
59 59
60 private: 60 private:
61 // Initialize views and layout. 61 // Initialize views and layout.
62 void Init(const std::string& server, 62 void Init(const std::string& server,
63 const std::string& slot_name, 63 const std::string& slot_name,
64 browser::CryptoModulePasswordReason reason); 64 browser::CryptoModulePasswordReason reason);
65 65
66 views::Label* title_label_; 66 views::Label* title_label_;
67 views::Label* reason_label_; 67 views::Label* reason_label_;
68 views::Label* password_label_; 68 views::Label* password_label_;
69 views::Textfield* password_entry_; 69 views::Textfield* password_entry_;
70 70
71 const base::Callback<void(const char*)> callback_; 71 const base::Callback<void(const char*)> callback_;
72 FRIEND_TEST_ALL_PREFIXES(CryptoModulePasswordDialogViewTest, TestAccept); 72 FRIEND_TEST_ALL_PREFIXES(CryptoModulePasswordDialogViewTest, TestAccept);
73 73
74 DISALLOW_COPY_AND_ASSIGN(CryptoModulePasswordDialogView); 74 DISALLOW_COPY_AND_ASSIGN(CryptoModulePasswordDialogView);
75 }; 75 };
76 76
77 } // namespace browser 77 } // namespace browser
78 78
79 #endif // CHROME_BROWSER_UI_VIEWS_CRYPTO_MODULE_PASSWORD_DIALOG_VIEW_H_ 79 #endif // CHROME_BROWSER_UI_VIEWS_CRYPTO_MODULE_PASSWORD_DIALOG_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/crypto_module_password_dialog_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698