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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 1163603004: Remove candidate show/hide/update related code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/renderer_host/render_widget_host_view_aura.h" 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 1770 matching lines...) Expand 10 before | Expand all | Expand 10 after
1781 gfx::Rect intersected_rect( 1781 gfx::Rect intersected_rect(
1782 gfx::IntersectRects(rect, window_->GetBoundsInScreen())); 1782 gfx::IntersectRects(rect, window_->GetBoundsInScreen()));
1783 1783
1784 if (intersected_rect.IsEmpty()) 1784 if (intersected_rect.IsEmpty())
1785 return; 1785 return;
1786 1786
1787 host_->ScrollFocusedEditableNodeIntoRect( 1787 host_->ScrollFocusedEditableNodeIntoRect(
1788 ConvertRectFromScreen(intersected_rect)); 1788 ConvertRectFromScreen(intersected_rect));
1789 } 1789 }
1790 1790
1791 void RenderWidgetHostViewAura::OnCandidateWindowShown() {
1792 host_->CandidateWindowShown();
1793 }
1794
1795 void RenderWidgetHostViewAura::OnCandidateWindowUpdated() {
1796 host_->CandidateWindowUpdated();
1797 }
1798
1799 void RenderWidgetHostViewAura::OnCandidateWindowHidden() {
1800 host_->CandidateWindowHidden();
1801 }
1802
1803 bool RenderWidgetHostViewAura::IsEditCommandEnabled(int command_id) { 1791 bool RenderWidgetHostViewAura::IsEditCommandEnabled(int command_id) {
1804 return false; 1792 return false;
1805 } 1793 }
1806 1794
1807 void RenderWidgetHostViewAura::SetEditCommandForNextKeyEvent(int command_id) { 1795 void RenderWidgetHostViewAura::SetEditCommandForNextKeyEvent(int command_id) {
1808 } 1796 }
1809 1797
1810 //////////////////////////////////////////////////////////////////////////////// 1798 ////////////////////////////////////////////////////////////////////////////////
1811 // RenderWidgetHostViewAura, gfx::DisplayObserver implementation: 1799 // RenderWidgetHostViewAura, gfx::DisplayObserver implementation:
1812 1800
(...skipping 998 matching lines...) Expand 10 before | Expand all | Expand 10 after
2811 2799
2812 //////////////////////////////////////////////////////////////////////////////// 2800 ////////////////////////////////////////////////////////////////////////////////
2813 // RenderWidgetHostViewBase, public: 2801 // RenderWidgetHostViewBase, public:
2814 2802
2815 // static 2803 // static
2816 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) { 2804 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) {
2817 GetScreenInfoForWindow(results, NULL); 2805 GetScreenInfoForWindow(results, NULL);
2818 } 2806 }
2819 2807
2820 } // namespace content 2808 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698