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

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

Issue 14969012: components: Create web_modal component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix-gtk-build 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_WEB_CONTENTS_MODAL_DIALOG_HOST_H_ 5 #ifndef COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_HOST_H_
6 #define CHROME_BROWSER_UI_WEB_CONTENTS_MODAL_DIALOG_HOST_H_ 6 #define COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_HOST_H_
7 7
8 #include "ui/gfx/point.h" 8 #include "ui/gfx/point.h"
9 #include "ui/gfx/size.h" 9 #include "ui/gfx/size.h"
10 10
11 namespace web_modal {
12
11 // Observer to be implemented to update web contents modal dialogs when the host 13 // Observer to be implemented to update web contents modal dialogs when the host
12 // indicates their position needs to be changed. 14 // indicates their position needs to be changed.
13 class WebContentsModalDialogHostObserver { 15 class WebContentsModalDialogHostObserver {
14 public: 16 public:
15 virtual ~WebContentsModalDialogHostObserver(); 17 virtual ~WebContentsModalDialogHostObserver();
16 18
17 virtual void OnPositionRequiresUpdate() = 0; 19 virtual void OnPositionRequiresUpdate() = 0;
18 20
19 protected: 21 protected:
20 WebContentsModalDialogHostObserver(); 22 WebContentsModalDialogHostObserver();
(...skipping 14 matching lines...) Expand all
35 virtual void AddObserver(WebContentsModalDialogHostObserver* observer) = 0; 37 virtual void AddObserver(WebContentsModalDialogHostObserver* observer) = 0;
36 virtual void RemoveObserver(WebContentsModalDialogHostObserver* observer) = 0; 38 virtual void RemoveObserver(WebContentsModalDialogHostObserver* observer) = 0;
37 39
38 protected: 40 protected:
39 WebContentsModalDialogHost(); 41 WebContentsModalDialogHost();
40 42
41 private: 43 private:
42 DISALLOW_COPY_AND_ASSIGN(WebContentsModalDialogHost); 44 DISALLOW_COPY_AND_ASSIGN(WebContentsModalDialogHost);
43 }; 45 };
44 46
45 #endif // CHROME_BROWSER_UI_WEB_CONTENTS_MODAL_DIALOG_HOST_H_ 47 } // namespace web_modal
48
49 #endif // COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698