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

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

Issue 6657003: Update a bunch of files to the new location of notification files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
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_widget_host_view_views.h" 8 #include "chrome/browser/renderer_host/render_widget_host_view_views.h"
9 #include "chrome/browser/tabs/tab_strip_model.h" 9 #include "chrome/browser/tabs/tab_strip_model.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
11 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 11 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
12 #include "chrome/browser/ui/touch/frame/keyboard_container_view.h" 12 #include "chrome/browser/ui/touch/frame/keyboard_container_view.h"
13 #include "chrome/browser/ui/views/frame/browser_view.h" 13 #include "chrome/browser/ui/views/frame/browser_view.h"
14 #include "chrome/common/notification_service.h"
15 #include "chrome/common/notification_type.h"
16 #include "content/browser/renderer_host/render_view_host.h" 14 #include "content/browser/renderer_host/render_view_host.h"
17 #include "content/browser/tab_contents/navigation_controller.h" 15 #include "content/browser/tab_contents/navigation_controller.h"
18 #include "content/browser/tab_contents/tab_contents.h" 16 #include "content/browser/tab_contents/tab_contents.h"
17 #include "content/common/notification_service.h"
18 #include "content/common/notification_type.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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 parent()->Layout(); 237 parent()->Layout();
238 238
239 // The keyboard that pops up may end up hiding the text entry. So make sure 239 // The keyboard that pops up may end up hiding the text entry. So make sure
240 // the renderer scrolls when necessary to keep the textfield visible. 240 // the renderer scrolls when necessary to keep the textfield visible.
241 RenderViewHost* host = 241 RenderViewHost* host =
242 browser_view()->browser()->GetSelectedTabContents()->render_view_host(); 242 browser_view()->browser()->GetSelectedTabContents()->render_view_host();
243 host->ScrollFocusedEditableNodeIntoView(); 243 host->ScrollFocusedEditableNodeIntoView();
244 } 244 }
245 SchedulePaint(); 245 SchedulePaint();
246 } 246 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/touch/frame/touch_browser_frame_view.h ('k') | chrome/browser/ui/views/frame/glass_browser_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698