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

Side by Side Diff: chrome/browser/ui/native_web_contents_modal_dialog_manager.h

Issue 12224020: Use gfx::NativeView rather than gfx::NativeWindow to identify web contents modal dialogs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 CHROME_BROWSER_UI_NATIVE_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_
6 #define CHROME_BROWSER_UI_NATIVE_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_ 6 #define CHROME_BROWSER_UI_NATIVE_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_
7 7
8 #include "ui/gfx/native_widget_types.h" 8 #include "ui/gfx/native_widget_types.h"
9 9
10 // Provides an interface for platform-specific UI implementation for the web 10 // Provides an interface for platform-specific UI implementation for the web
11 // contents modal dialog. 11 // contents modal dialog.
12 class NativeWebContentsModalDialogManager { 12 class NativeWebContentsModalDialogManager {
13 public: 13 public:
14 NativeWebContentsModalDialogManager() {} 14 NativeWebContentsModalDialogManager() {}
Ben Goodger (Google) 2013/02/06 01:30:22 since this is an interface it shouldn't have a cto
15 virtual ~NativeWebContentsModalDialogManager() {} 15 virtual ~NativeWebContentsModalDialogManager() {}
16 16
17 // Starts management of the modal aspects of the dialog. This function should 17 // Starts management of the modal aspects of the dialog. This function should
18 // also register to be notified when the dialog is closing, so that it can 18 // also register to be notified when the dialog is closing, so that it can
19 // notify the manager. 19 // notify the manager.
20 virtual void ManageDialog(gfx::NativeWindow window) = 0; 20 virtual void ManageDialog(gfx::NativeView view) = 0;
21 21
22 // Closes the web contents modal dialog. 22 // Closes the web contents modal dialog.
23 virtual void CloseDialog(gfx::NativeWindow window) = 0; 23 virtual void CloseDialog(gfx::NativeView view) = 0;
24 24
25 private: 25 private:
26 DISALLOW_COPY_AND_ASSIGN(NativeWebContentsModalDialogManager); 26 DISALLOW_COPY_AND_ASSIGN(NativeWebContentsModalDialogManager);
27 }; 27 };
28 28
29 #endif // CHROME_BROWSER_UI_NATIVE_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_ 29 #endif // CHROME_BROWSER_UI_NATIVE_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/constrained_window_gtk.cc ('k') | chrome/browser/ui/views/constrained_window_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698