OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_UI_APP_MODAL_DIALOGS_CHROME_JAVASCRIPT_DIALOG_MANAGER_CLI ENT_H_ | |
6 #define CHROME_BROWSER_UI_APP_MODAL_DIALOGS_CHROME_JAVASCRIPT_DIALOG_MANAGER_CLI ENT_H_ | |
7 | |
8 #include "base/memory/scoped_ptr.h" | |
msw
2014/10/30 00:20:31
Why is this needed here?
| |
9 #include "components/app_modal_dialogs/javascript_dialog_manager_client.h" | |
10 #include "ui/gfx/native_widget_types.h" | |
11 | |
12 class JavaScriptAppModalDialog; | |
13 class NativeAppModalDialog; | |
14 | |
15 class ChromeJavaScriptDialogManagerClient | |
16 : public JavaScriptDialogManagerClient { | |
17 public: | |
18 ChromeJavaScriptDialogManagerClient(); | |
19 ~ChromeJavaScriptDialogManagerClient() override; | |
20 | |
21 // JavaScriptDialogManagerClient: | |
22 NativeAppModalDialog* CreateNativeJavaScriptPrompt( | |
23 JavaScriptAppModalDialog* dialog, | |
24 gfx::NativeWindow parent_window) override; | |
25 void IncrementLazyKeepaliveCount( | |
26 content::WebContents* web_contents) override; | |
27 void DecrementLazyKeepaliveCount( | |
28 content::WebContents* web_contents) override; | |
29 bool GetExtensionName(content::WebContents* web_contents, | |
30 const GURL& origin_url, | |
31 std::string* name_out) override; | |
32 | |
33 // Creates a platform specific impl of NativeAppModalDialog for | |
34 // Chrome's javascript prompt. This is implemented by platform | |
35 // specific files. | |
36 static NativeAppModalDialog* CreateChromeNativeJavaScriptPrompt( | |
37 JavaScriptAppModalDialog* dialog, | |
38 gfx::NativeWindow parent_window); | |
39 | |
40 private: | |
41 DISALLOW_COPY_AND_ASSIGN(ChromeJavaScriptDialogManagerClient); | |
42 }; | |
43 | |
44 #endif // CHROME_BROWSER_UI_APP_MODAL_DIALOGS_CHROME_JAVASCRIPT_DIALOG_MANAGER_ CLIENT_H_ | |
45 | |
OLD | NEW |