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

Side by Side Diff: ui/web_dialogs/test/test_web_contents_handler.h

Issue 11636037: Make VKEY_F14 and VKEY_HELP close keyboard overlay. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address a comment Created 8 years 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_WEBUI_CHROME_WEB_CONTENTS_HANDLER_H_ 5 #ifndef UI_WEB_DIALOGS_TEST_TEST_WEB_CONTENTS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROME_WEB_CONTENTS_HANDLER_H_ 6 #define UI_WEB_DIALOGS_TEST_TEST_WEB_CONTENTS_HANDLER_H_
7 7
8 #include "base/basictypes.h"
8 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
9 #include "ui/web_dialogs/web_dialog_web_contents_delegate.h" 10 #include "ui/web_dialogs/web_dialog_web_contents_delegate.h"
10 11
11 class ChromeWebContentsHandler 12 namespace ui {
12 : public ui::WebDialogWebContentsDelegate::WebContentsHandler { 13 namespace test {
14
15 class TestWebContentsHandler
16 : public WebDialogWebContentsDelegate::WebContentsHandler {
13 public: 17 public:
14 ChromeWebContentsHandler(); 18 TestWebContentsHandler();
15 virtual ~ChromeWebContentsHandler(); 19 virtual ~TestWebContentsHandler();
16 20
21 private:
17 // Overridden from WebDialogWebContentsDelegate::WebContentsHandler: 22 // Overridden from WebDialogWebContentsDelegate::WebContentsHandler:
18 virtual content::WebContents* OpenURLFromTab( 23 virtual content::WebContents* OpenURLFromTab(
19 content::BrowserContext* context, 24 content::BrowserContext* context,
20 content::WebContents* source, 25 content::WebContents* source,
21 const content::OpenURLParams& params) OVERRIDE; 26 const content::OpenURLParams& params) OVERRIDE;
22 virtual void AddNewContents(content::BrowserContext* context, 27 virtual void AddNewContents(content::BrowserContext* context,
23 content::WebContents* source, 28 content::WebContents* source,
24 content::WebContents* new_contents, 29 content::WebContents* new_contents,
25 WindowOpenDisposition disposition, 30 WindowOpenDisposition disposition,
26 const gfx::Rect& initial_pos, 31 const gfx::Rect& initial_pos,
27 bool user_gesture) OVERRIDE; 32 bool user_gesture) OVERRIDE;
28 33
29 private: 34 DISALLOW_COPY_AND_ASSIGN(TestWebContentsHandler);
30 DISALLOW_COPY_AND_ASSIGN(ChromeWebContentsHandler);
31 }; 35 };
32 36
33 #endif // CHROME_BROWSER_UI_WEBUI_CHROME_WEB_CONTENTS_HANDLER_H_ 37 } // namespace test
38 } // namespace ui
39
40 #endif // UI_WEB_DIALOGS_TEST_TEST_WEB_CONTENTS_HANDLER_H_
OLDNEW
« no previous file with comments | « ash/keyboard_overlay/keyboard_overlay_view_unittest.cc ('k') | ui/web_dialogs/test/test_web_contents_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698