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

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

Issue 7074008: initial version of auto VK switching. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: demo update Created 9 years, 6 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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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 #include "chrome/browser/ui/touch/frame/keyboard_container_view.h" 5 #include "chrome/browser/ui/touch/frame/keyboard_container_view.h"
6 6
7 #include "chrome/browser/profiles/profile.h" 7 #include "chrome/browser/profiles/profile.h"
8 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/browser/ui/views/dom_view.h" 9 #include "chrome/browser/ui/views/dom_view.h"
10 #include "chrome/common/url_constants.h" 10 #include "chrome/common/url_constants.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 std::string KeyboardContainerView::GetClassName() const { 53 std::string KeyboardContainerView::GetClassName() const {
54 return kViewClassName; 54 return kViewClassName;
55 } 55 }
56 56
57 void KeyboardContainerView::Layout() { 57 void KeyboardContainerView::Layout() {
58 // TODO(bryeung): include a border between the keyboard and the client view 58 // TODO(bryeung): include a border between the keyboard and the client view
59 dom_view_->SetBounds(0, 0, width(), height()); 59 dom_view_->SetBounds(0, 0, width(), height());
60 } 60 }
61 61
62 void KeyboardContainerView::LoadURL(const GURL& keyboard_url) {
63 dom_view_->LoadURL(keyboard_url);
64 }
65
62 Browser* KeyboardContainerView::GetBrowser() { 66 Browser* KeyboardContainerView::GetBrowser() {
63 return browser_; 67 return browser_;
64 } 68 }
65 69
66 gfx::NativeView KeyboardContainerView::GetNativeViewOfHost() { 70 gfx::NativeView KeyboardContainerView::GetNativeViewOfHost() {
67 return dom_view_->native_view(); 71 return dom_view_->native_view();
68 } 72 }
69 73
70 TabContents* KeyboardContainerView::GetAssociatedTabContents() const { 74 TabContents* KeyboardContainerView::GetAssociatedTabContents() const {
71 return dom_view_->tab_contents(); 75 return dom_view_->tab_contents();
(...skipping 13 matching lines...) Expand all
85 IPC_MESSAGE_UNHANDLED(handled = false) 89 IPC_MESSAGE_UNHANDLED(handled = false)
86 IPC_END_MESSAGE_MAP() 90 IPC_END_MESSAGE_MAP()
87 return handled; 91 return handled;
88 } 92 }
89 93
90 void KeyboardContainerView::OnRequest( 94 void KeyboardContainerView::OnRequest(
91 const ExtensionHostMsg_Request_Params& request) { 95 const ExtensionHostMsg_Request_Params& request) {
92 extension_function_dispatcher_.Dispatch(request, 96 extension_function_dispatcher_.Dispatch(request,
93 dom_view_->tab_contents()->render_view_host()); 97 dom_view_->tab_contents()->render_view_host());
94 } 98 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/touch/frame/keyboard_container_view.h ('k') | chrome/browser/ui/touch/frame/touch_browser_frame_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698