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

Side by Side Diff: chrome/browser/ui/views/keyboard_overlay_delegate.h

Issue 5440001: Enable to show the keyboard overlay by shortcut key. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 10 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
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_VIEWS_KEYBOARD_OVERLAY_DELEGATE_H_
6 #define CHROME_BROWSER_UI_VIEWS_KEYBOARD_OVERLAY_DELEGATE_H_
7
8 #include "gfx/native_widget_types.h"
9 #include "chrome/browser/dom_ui/html_dialog_ui.h"
10
11 class KeyboardOverlayDelegate : public HtmlDialogUIDelegate {
12 public:
13 KeyboardOverlayDelegate(const std::wstring& title);
14
15 // Shows the keyboard overlay dialog box.
16 static void ShowDialog(gfx::NativeWindow owning_window);
17
18 private:
19 ~KeyboardOverlayDelegate();
20
21 // Overridden from HtmlDialogUI::Delegate:
22 virtual bool IsDialogModal() const;
23 virtual std::wstring GetDialogTitle() const;
24 virtual GURL GetDialogContentURL() const;
25 virtual void GetDOMMessageHandlers(
26 std::vector<DOMMessageHandler*>* handlers) const;
27 virtual void GetDialogSize(gfx::Size* size) const;
28 virtual std::string GetDialogArgs() const;
29 virtual void OnDialogClosed(const std::string& json_retval);
30 virtual void OnCloseContents(TabContents* source, bool* out_close_dialog);
31 virtual bool ShouldShowDialogTitle() const;
32
33 // The dialog title.
34 std::wstring title_;
35
36 DISALLOW_COPY_AND_ASSIGN(KeyboardOverlayDelegate);
37 };
38
39 #endif // CHROME_BROWSER_UI_VIEWS_KEYBOARD_OVERLAY_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | chrome/browser/ui/views/keyboard_overlay_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698