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

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

Issue 6598084: Get rid of temporary render_view_host.h. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 9 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
« no previous file with comments | « chrome/browser/ui/gtk/find_bar_gtk.cc ('k') | chrome/browser/ui/views/dropdown_bar_host_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/touch_browser_frame_view.h" 5 #include "chrome/browser/ui/touch/frame/touch_browser_frame_view.h"
6 6
7 #include "chrome/browser/profiles/profile.h" 7 #include "chrome/browser/profiles/profile.h"
8 #include "chrome/browser/renderer_host/render_view_host.h"
9 #include "chrome/browser/renderer_host/render_widget_host_view_views.h" 8 #include "chrome/browser/renderer_host/render_widget_host_view_views.h"
10 #include "chrome/browser/tab_contents/navigation_controller.h"
11 #include "chrome/browser/tab_contents/tab_contents.h"
12 #include "chrome/browser/tabs/tab_strip_model.h" 9 #include "chrome/browser/tabs/tab_strip_model.h"
13 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
14 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 11 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
15 #include "chrome/browser/ui/touch/frame/keyboard_container_view.h" 12 #include "chrome/browser/ui/touch/frame/keyboard_container_view.h"
16 #include "chrome/browser/ui/views/frame/browser_view.h" 13 #include "chrome/browser/ui/views/frame/browser_view.h"
17 #include "chrome/common/notification_service.h" 14 #include "chrome/common/notification_service.h"
18 #include "chrome/common/notification_type.h" 15 #include "chrome/common/notification_type.h"
16 #include "content/browser/renderer_host/render_view_host.h"
17 #include "content/browser/tab_contents/navigation_controller.h"
18 #include "content/browser/tab_contents/tab_contents.h"
19 #include "ui/base/animation/slide_animation.h" 19 #include "ui/base/animation/slide_animation.h"
20 #include "ui/gfx/rect.h" 20 #include "ui/gfx/rect.h"
21 #include "views/controls/textfield/textfield.h" 21 #include "views/controls/textfield/textfield.h"
22 22
23 namespace { 23 namespace {
24 24
25 const int kKeyboardHeight = 300; 25 const int kKeyboardHeight = 300;
26 const int kKeyboardSlideDuration = 500; // In milliseconds 26 const int kKeyboardSlideDuration = 500; // In milliseconds
27 27
28 PropertyAccessor<bool>* GetFocusedStateAccessor() { 28 PropertyAccessor<bool>* GetFocusedStateAccessor() {
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 parent()->Layout(); 234 parent()->Layout();
235 235
236 // The keyboard that pops up may end up hiding the text entry. So make sure 236 // The keyboard that pops up may end up hiding the text entry. So make sure
237 // the renderer scrolls when necessary to keep the textfield visible. 237 // the renderer scrolls when necessary to keep the textfield visible.
238 RenderViewHost* host = 238 RenderViewHost* host =
239 browser_view()->browser()->GetSelectedTabContents()->render_view_host(); 239 browser_view()->browser()->GetSelectedTabContents()->render_view_host();
240 host->ScrollFocusedEditableNodeIntoView(); 240 host->ScrollFocusedEditableNodeIntoView();
241 } 241 }
242 SchedulePaint(); 242 SchedulePaint();
243 } 243 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/find_bar_gtk.cc ('k') | chrome/browser/ui/views/dropdown_bar_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698