diff options
author | mazda@chromium.org <mazda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-25 21:55:02 +0000 |
---|---|---|
committer | mazda@chromium.org <mazda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-25 21:55:02 +0000 |
commit | 729b4851c4a3dc59e40f80b8798fa9253ee074a0 (patch) | |
tree | d0b8a1f468a3b20ca3df0ba56286e83ca9564686 /ash/keyboard_overlay/keyboard_overlay_view.h | |
parent | 16b7b2781d20602e7b58eaaf23a3c6e6ac250a55 (diff) | |
download | chromium_src-729b4851c4a3dc59e40f80b8798fa9253ee074a0.zip chromium_src-729b4851c4a3dc59e40f80b8798fa9253ee074a0.tar.gz chromium_src-729b4851c4a3dc59e40f80b8798fa9253ee074a0.tar.bz2 |
Revert "Revert 148383 - Move the keyboard overlay view to ash."
The original CL broke win_aura, which is fixed in this CL.
This reverts commit b36e66174d685a4195d7cc934d978086e033a8c4.
TBR=ben@chromium.org
BUG=124222
TEST=None
Review URL: https://chromiumcodereview.appspot.com/10824023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148428 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/keyboard_overlay/keyboard_overlay_view.h')
-rw-r--r-- | ash/keyboard_overlay/keyboard_overlay_view.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/ash/keyboard_overlay/keyboard_overlay_view.h b/ash/keyboard_overlay/keyboard_overlay_view.h new file mode 100644 index 0000000..a0b44e0 --- /dev/null +++ b/ash/keyboard_overlay/keyboard_overlay_view.h @@ -0,0 +1,42 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef ASH_KEYBOARD_OVERLAY_KEYBOARD_OVERLAY_VIEW_H_ +#define ASH_KEYBOARD_OVERLAY_KEYBOARD_OVERLAY_VIEW_H_ + +#include "ash/ash_export.h" +#include "base/compiler_specific.h" +#include "ui/views/controls/webview/web_dialog_view.h" + +class GURL; + +namespace content { +class BrowserContext; +} + +namespace ui { +class WebDialogDelegate; +} + +// A customized dialog view for the keyboard overlay. +class ASH_EXPORT KeyboardOverlayView : public views::WebDialogView { + public: + KeyboardOverlayView(content::BrowserContext* context, + ui::WebDialogDelegate* delegate, + WebContentsHandler* handler); + virtual ~KeyboardOverlayView(); + + // Shows the keyboard overlay. + static void ShowDialog(content::BrowserContext* context, + WebContentsHandler* handler, + const GURL& url); + + private: + // Overridden from views::WidgetDelegate: + virtual void WindowClosing() OVERRIDE; + + DISALLOW_COPY_AND_ASSIGN(KeyboardOverlayView); +}; + +#endif // ASH_KEYBOARD_OVERLAY_KEYBOARD_OVERLAY_VIEW_H_ |