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

Side by Side Diff: components/app_modal_dialogs/javascript_native_dialog_factory.h

Issue 666533007: Move JavaScriptDialogManager, JavascriptAppModalDialogViews to components/app_modal_dialogs (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: similarity=30 Created 6 years, 1 month 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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_NATIVE_WINDOW_TRACKER_H_ 5 #ifndef COMPONENTS_APP_MODAL_DIALOGS_JAVASCRIPT_NATIVE_DIALOG_FACTORY_H_
6 #define CHROME_BROWSER_UI_NATIVE_WINDOW_TRACKER_H_ 6 #define COMPONENTS_APP_MODAL_DIALOGS_JAVASCRIPT_NATIVE_DIALOG_FACTORY_H_
7
8 #include <string>
7 9
8 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
9 #include "ui/gfx/native_widget_types.h" 11 #include "ui/gfx/native_widget_types.h"
10 12
11 // An observer which detects when a gfx::NativeWindow is closed. 13 class GURL;
12 class NativeWindowTracker { 14 class JavaScriptAppModalDialog;
15 class NativeAppModalDialog;
16
17 class JavaScriptNativeDialogFactory {
13 public: 18 public:
14 virtual ~NativeWindowTracker() {} 19 virtual ~JavaScriptNativeDialogFactory() {}
15 20
16 static scoped_ptr<NativeWindowTracker> Create(gfx::NativeWindow window); 21 // Creates an native modal dialog for a JavaScript dialog;
17 22 virtual NativeAppModalDialog* CreateNativeJavaScriptDialog(
18 // Returns true if the native window passed to Create() has been closed. 23 JavaScriptAppModalDialog* dialog,
19 virtual bool WasNativeWindowClosed() const = 0; 24 gfx::NativeWindow parent_window) = 0;
20 }; 25 };
21 26
22 #endif // CHROME_BROWSER_UI_NATIVE_WINDOW_TRACKER_H_ 27 #endif // COMPONENTS_APP_MODAL_DIALOGS_JAVASCRIPT_NATIVE_DIALOG_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698