OLD | NEW |
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_WEBUI_INPUT_WINDOW_DIALOG_WEBUI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_INPUT_WINDOW_DIALOG_WEBUI_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_INPUT_WINDOW_DIALOG_WEBUI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_INPUT_WINDOW_DIALOG_WEBUI_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 // Dialog handler that handles calls from the JS WebUI code to validate the | 63 // Dialog handler that handles calls from the JS WebUI code to validate the |
64 // string value in the text field. | 64 // string value in the text field. |
65 class InputWindowDialogHandler : public WebUIMessageHandler { | 65 class InputWindowDialogHandler : public WebUIMessageHandler { |
66 public: | 66 public: |
67 explicit InputWindowDialogHandler(InputWindowDialog::Delegate* delegate); | 67 explicit InputWindowDialogHandler(InputWindowDialog::Delegate* delegate); |
68 | 68 |
69 void CloseDialog(); | 69 void CloseDialog(); |
70 | 70 |
71 // Overridden from WebUIMessageHandler | 71 // Overridden from WebUIMessageHandler |
72 virtual void RegisterMessages(); | 72 virtual void RegisterMessages() OVERRIDE; |
73 | 73 |
74 private: | 74 private: |
75 void Validate(const base::ListValue* args); | 75 void Validate(const base::ListValue* args); |
76 | 76 |
77 InputWindowDialog::Delegate* delegate_; | 77 InputWindowDialog::Delegate* delegate_; |
78 | 78 |
79 DISALLOW_COPY_AND_ASSIGN(InputWindowDialogHandler); | 79 DISALLOW_COPY_AND_ASSIGN(InputWindowDialogHandler); |
80 }; | 80 }; |
81 | 81 |
82 #endif // CHROME_BROWSER_UI_WEBUI_INPUT_WINDOW_DIALOG_WEBUI_H_ | 82 #endif // CHROME_BROWSER_UI_WEBUI_INPUT_WINDOW_DIALOG_WEBUI_H_ |
OLD | NEW |