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

Side by Side Diff: components/web_modal/native_web_contents_modal_dialog_manager.h

Issue 14969012: components: Create web_modal component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge-before-land Created 7 years, 7 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_UI_NATIVE_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_ 5 #ifndef COMPONENTS_WEB_MODAL_NATIVE_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_
6 #define CHROME_BROWSER_UI_NATIVE_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_ 6 #define COMPONENTS_WEB_MODAL_NATIVE_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_
7 7
8 #include "chrome/browser/ui/native_web_contents_modal_dialog.h" 8 #include "components/web_modal/native_web_contents_modal_dialog.h"
9 9
10 namespace content { 10 namespace content {
11 class WebContents; 11 class WebContents;
12 } // namespace content 12 } // namespace content
13 13
14 namespace web_modal {
15
14 // Interface from NativeWebContentsModalDialogManager to 16 // Interface from NativeWebContentsModalDialogManager to
15 // WebContentsModalDialogManager. 17 // WebContentsModalDialogManager.
16 class NativeWebContentsModalDialogManagerDelegate { 18 class NativeWebContentsModalDialogManagerDelegate {
17 public: 19 public:
18 NativeWebContentsModalDialogManagerDelegate() {} 20 NativeWebContentsModalDialogManagerDelegate() {}
19 virtual ~NativeWebContentsModalDialogManagerDelegate() {} 21 virtual ~NativeWebContentsModalDialogManagerDelegate() {}
20 22
21 virtual content::WebContents* GetWebContents() const = 0; 23 virtual content::WebContents* GetWebContents() const = 0;
22 virtual void WillClose(NativeWebContentsModalDialog dialog) = 0; 24 virtual void WillClose(NativeWebContentsModalDialog dialog) = 0;
23 25
(...skipping 28 matching lines...) Expand all
52 // Runs a pulse animation for the web contents modal dialog. 54 // Runs a pulse animation for the web contents modal dialog.
53 virtual void PulseDialog(NativeWebContentsModalDialog dialog) = 0; 55 virtual void PulseDialog(NativeWebContentsModalDialog dialog) = 0;
54 56
55 protected: 57 protected:
56 NativeWebContentsModalDialogManager() {} 58 NativeWebContentsModalDialogManager() {}
57 59
58 private: 60 private:
59 DISALLOW_COPY_AND_ASSIGN(NativeWebContentsModalDialogManager); 61 DISALLOW_COPY_AND_ASSIGN(NativeWebContentsModalDialogManager);
60 }; 62 };
61 63
62 #endif // CHROME_BROWSER_UI_NATIVE_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_ 64 } // namespace web_modal
65
66 #endif // COMPONENTS_WEB_MODAL_NATIVE_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_
OLDNEW
« no previous file with comments | « components/web_modal/native_web_contents_modal_dialog.h ('k') | components/web_modal/web_contents_modal_dialog_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698