| OLD | NEW |
| 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/native_widget_types.h" | 8 #include "ui/gfx/native_widget_types.h" |
| 9 #include "ui/gfx/point.h" | 9 #include "ui/gfx/point.h" |
| 10 #include "ui/gfx/size.h" | 10 #include "ui/gfx/size.h" |
| 11 | 11 |
| 12 namespace web_modal { |
| 13 |
| 12 // Observer to be implemented to update web contents modal dialogs when the host | 14 // Observer to be implemented to update web contents modal dialogs when the host |
| 13 // indicates their position needs to be changed. | 15 // indicates their position needs to be changed. |
| 14 class WebContentsModalDialogHostObserver { | 16 class WebContentsModalDialogHostObserver { |
| 15 public: | 17 public: |
| 16 virtual ~WebContentsModalDialogHostObserver(); | 18 virtual ~WebContentsModalDialogHostObserver(); |
| 17 | 19 |
| 18 virtual void OnPositionRequiresUpdate() = 0; | 20 virtual void OnPositionRequiresUpdate() = 0; |
| 19 | 21 |
| 20 protected: | 22 protected: |
| 21 WebContentsModalDialogHostObserver(); | 23 WebContentsModalDialogHostObserver(); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 40 virtual void AddObserver(WebContentsModalDialogHostObserver* observer) = 0; | 42 virtual void AddObserver(WebContentsModalDialogHostObserver* observer) = 0; |
| 41 virtual void RemoveObserver(WebContentsModalDialogHostObserver* observer) = 0; | 43 virtual void RemoveObserver(WebContentsModalDialogHostObserver* observer) = 0; |
| 42 | 44 |
| 43 protected: | 45 protected: |
| 44 WebContentsModalDialogHost(); | 46 WebContentsModalDialogHost(); |
| 45 | 47 |
| 46 private: | 48 private: |
| 47 DISALLOW_COPY_AND_ASSIGN(WebContentsModalDialogHost); | 49 DISALLOW_COPY_AND_ASSIGN(WebContentsModalDialogHost); |
| 48 }; | 50 }; |
| 49 | 51 |
| 50 #endif // CHROME_BROWSER_UI_WEB_CONTENTS_MODAL_DIALOG_HOST_H_ | 52 } // namespace web_modal |
| 53 |
| 54 #endif // COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_HOST_H_ |
| OLD | NEW |