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

Side by Side Diff: chrome/browser/ui/touch/frame/keyboard_container_view.h

Issue 7302015: A keyboard widget that manages itself (the animation and all that). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge with trunk Created 9 years, 4 months 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) 2011 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_TOUCH_FRAME_KEYBOARD_CONTAINER_VIEW_H_
6 #define CHROME_BROWSER_UI_TOUCH_FRAME_KEYBOARD_CONTAINER_VIEW_H_
7 #pragma once
8
9 #include "chrome/browser/extensions/extension_function_dispatcher.h"
10 #include "chrome/common/extensions/extension_messages.h"
11 #include "content/browser/tab_contents/tab_contents_observer.h"
12 #include "views/view.h"
13
14 namespace IPC {
15 class Message;
16 }
17
18 class Browser;
19 class DOMView;
20 class GURL;
21 class Profile;
22
23 // A class that contains and decorates the virtual keyboard.
24 //
25 // This class is also responsible for managing focus of all views related to
26 // the keyboard to prevent them from interfering with the ClientView.
27 class KeyboardContainerView : public views::View,
28 public TabContentsObserver,
29 public ExtensionFunctionDispatcher::Delegate {
30 public:
31 // Internal class name.
32 static const char kViewClassName[];
33
34 KeyboardContainerView(Profile* profile, Browser* browser, const GURL& url);
35 virtual ~KeyboardContainerView();
36
37 // Overridden from views::View
38 virtual std::string GetClassName() const OVERRIDE;
39 virtual void Layout();
40
41 // ExtensionFunctionDispatcher::Delegate implementation
42 virtual Browser* GetBrowser();
43 virtual gfx::NativeView GetNativeViewOfHost();
44 virtual TabContents* GetAssociatedTabContents() const;
45
46 // Shows |keyboard_url|. The URL should look something like
47 // http://id_of_the_vk_extension/index.html#layout_name_to_show
48 void LoadURL(const GURL& keyboard_url);
49
50 protected:
51 // Overridden from views::View
52 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child);
53
54 // Overridden from TabContentsObserver
55 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
56
57 private:
58 void OnRequest(const ExtensionHostMsg_Request_Params& params);
59
60 DOMView* dom_view_;
61 ExtensionFunctionDispatcher extension_function_dispatcher_;
62 Browser* browser_;
63
64 DISALLOW_COPY_AND_ASSIGN(KeyboardContainerView);
65 };
66
67 #endif // CHROME_BROWSER_UI_TOUCH_FRAME_KEYBOARD_CONTAINER_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/webui_login_view.cc ('k') | chrome/browser/ui/touch/frame/keyboard_container_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698