| Index: ui/web_dialogs/test/test_web_contents_handler.h
|
| diff --git a/chrome/browser/ui/webui/chrome_web_contents_handler.h b/ui/web_dialogs/test/test_web_contents_handler.h
|
| similarity index 65%
|
| copy from chrome/browser/ui/webui/chrome_web_contents_handler.h
|
| copy to ui/web_dialogs/test/test_web_contents_handler.h
|
| index 7e1d32c56843fd4a720bef1c69632ef1947dfb6e..abe2c7353c2cc0d629ff4e74b8b4df11c7a0f326 100644
|
| --- a/chrome/browser/ui/webui/chrome_web_contents_handler.h
|
| +++ b/ui/web_dialogs/test/test_web_contents_handler.h
|
| @@ -2,18 +2,23 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef CHROME_BROWSER_UI_WEBUI_CHROME_WEB_CONTENTS_HANDLER_H_
|
| -#define CHROME_BROWSER_UI_WEBUI_CHROME_WEB_CONTENTS_HANDLER_H_
|
| +#ifndef UI_WEB_DIALOGS_TEST_TEST_WEB_CONTENTS_HANDLER_H_
|
| +#define UI_WEB_DIALOGS_TEST_TEST_WEB_CONTENTS_HANDLER_H_
|
|
|
| +#include "base/basictypes.h"
|
| #include "base/compiler_specific.h"
|
| #include "ui/web_dialogs/web_dialog_web_contents_delegate.h"
|
|
|
| -class ChromeWebContentsHandler
|
| - : public ui::WebDialogWebContentsDelegate::WebContentsHandler {
|
| +namespace ui {
|
| +namespace test {
|
| +
|
| +class TestWebContentsHandler
|
| + : public WebDialogWebContentsDelegate::WebContentsHandler {
|
| public:
|
| - ChromeWebContentsHandler();
|
| - virtual ~ChromeWebContentsHandler();
|
| + TestWebContentsHandler();
|
| + virtual ~TestWebContentsHandler();
|
|
|
| + private:
|
| // Overridden from WebDialogWebContentsDelegate::WebContentsHandler:
|
| virtual content::WebContents* OpenURLFromTab(
|
| content::BrowserContext* context,
|
| @@ -26,8 +31,10 @@ class ChromeWebContentsHandler
|
| const gfx::Rect& initial_pos,
|
| bool user_gesture) OVERRIDE;
|
|
|
| - private:
|
| - DISALLOW_COPY_AND_ASSIGN(ChromeWebContentsHandler);
|
| + DISALLOW_COPY_AND_ASSIGN(TestWebContentsHandler);
|
| };
|
|
|
| -#endif // CHROME_BROWSER_UI_WEBUI_CHROME_WEB_CONTENTS_HANDLER_H_
|
| +} // namespace test
|
| +} // namespace ui
|
| +
|
| +#endif // UI_WEB_DIALOGS_TEST_TEST_WEB_CONTENTS_HANDLER_H_
|
|
|