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

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

Issue 614553002: Make sure the IME composition is canceled before forwarding the mouse pressed event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added an unit test. Created 6 years, 2 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
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_aura.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) 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 DiscardDelegatedFramesWithLocking); 377 DiscardDelegatedFramesWithLocking);
378 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, SoftwareDPIChange); 378 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, SoftwareDPIChange);
379 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, 379 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
380 UpdateCursorIfOverSelf); 380 UpdateCursorIfOverSelf);
381 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraCopyRequestTest, 381 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraCopyRequestTest,
382 DestroyedAfterCopyRequest); 382 DestroyedAfterCopyRequest);
383 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, 383 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
384 VisibleViewportTest); 384 VisibleViewportTest);
385 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, 385 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
386 OverscrollResetsOnBlur); 386 OverscrollResetsOnBlur);
387 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
388 FinishCompositionByMouse);
387 FRIEND_TEST_ALL_PREFIXES(WebContentsViewAuraTest, 389 FRIEND_TEST_ALL_PREFIXES(WebContentsViewAuraTest,
388 WebContentsViewReparent); 390 WebContentsViewReparent);
389 391
390 class WindowObserver; 392 class WindowObserver;
391 friend class WindowObserver; 393 friend class WindowObserver;
392 394
393 void UpdateCursorIfOverSelf(); 395 void UpdateCursorIfOverSelf();
394 396
395 // Tracks whether SnapToPhysicalPixelBoundary() has been called. 397 // Tracks whether SnapToPhysicalPixelBoundary() has been called.
396 bool has_snapped_to_boundary() { return has_snapped_to_boundary_; } 398 bool has_snapped_to_boundary() { return has_snapped_to_boundary_; }
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 // view, so we can ensure the window hasn't moved between copying from the 625 // view, so we can ensure the window hasn't moved between copying from the
624 // compositing surface and showing the disambiguation popup. 626 // compositing surface and showing the disambiguation popup.
625 gfx::Vector2dF disambiguation_scroll_offset_; 627 gfx::Vector2dF disambiguation_scroll_offset_;
626 628
627 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 629 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
628 }; 630 };
629 631
630 } // namespace content 632 } // namespace content
631 633
632 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 634 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698