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

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

Issue 574583002: Do not release capture when clicking to open select box (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 #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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 348
349 protected: 349 protected:
350 virtual ~RenderWidgetHostViewAura(); 350 virtual ~RenderWidgetHostViewAura();
351 351
352 // Exposed for tests. 352 // Exposed for tests.
353 aura::Window* window() { return window_; } 353 aura::Window* window() { return window_; }
354 virtual SkColorType PreferredReadbackFormat() OVERRIDE; 354 virtual SkColorType PreferredReadbackFormat() OVERRIDE;
355 virtual DelegatedFrameHost* GetDelegatedFrameHost() const OVERRIDE; 355 virtual DelegatedFrameHost* GetDelegatedFrameHost() const OVERRIDE;
356 356
357 private: 357 private:
358 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
359 PopupRetainsCaptureAfterMouseRelease);
358 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, SetCompositionText); 360 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, SetCompositionText);
359 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, TouchEventState); 361 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, TouchEventState);
360 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, 362 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
361 TouchEventPositionsArentRounded); 363 TouchEventPositionsArentRounded);
362 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, TouchEventSyncAsync); 364 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, TouchEventSyncAsync);
363 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, SwapNotifiesWindow); 365 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, SwapNotifiesWindow);
364 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, 366 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
365 SkippedDelegatedFrames); 367 SkippedDelegatedFrames);
366 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, OutputSurfaceIdChange); 368 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, OutputSurfaceIdChange);
367 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, 369 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
(...skipping 28 matching lines...) Expand all
396 398
397 #if defined(OS_WIN) 399 #if defined(OS_WIN)
398 bool UsesNativeWindowFrame() const; 400 bool UsesNativeWindowFrame() const;
399 #endif 401 #endif
400 402
401 ui::InputMethod* GetInputMethod() const; 403 ui::InputMethod* GetInputMethod() const;
402 404
403 // Returns whether the widget needs an input grab to work properly. 405 // Returns whether the widget needs an input grab to work properly.
404 bool NeedsInputGrab(); 406 bool NeedsInputGrab();
405 407
408 // Returns whether the widget needs to grab mouse capture to work properly.
409 bool NeedsMouseCapture();
410
406 // Confirm existing composition text in the webpage and ask the input method 411 // Confirm existing composition text in the webpage and ask the input method
407 // to cancel its ongoing composition session. 412 // to cancel its ongoing composition session.
408 void FinishImeCompositionSession(); 413 void FinishImeCompositionSession();
409 414
410 // This method computes movementX/Y and keeps track of mouse location for 415 // This method computes movementX/Y and keeps track of mouse location for
411 // mouse lock on all mouse move events. 416 // mouse lock on all mouse move events.
412 void ModifyEventMovementAndCoords(blink::WebMouseEvent* event); 417 void ModifyEventMovementAndCoords(blink::WebMouseEvent* event);
413 418
414 // Sends an IPC to the renderer process to communicate whether or not 419 // Sends an IPC to the renderer process to communicate whether or not
415 // the mouse cursor is visible anywhere on the screen. 420 // the mouse cursor is visible anywhere on the screen.
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 scoped_ptr<aura::client::ScopedTooltipDisabler> tooltip_disabler_; 611 scoped_ptr<aura::client::ScopedTooltipDisabler> tooltip_disabler_;
607 612
608 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; 613 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_;
609 614
610 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 615 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
611 }; 616 };
612 617
613 } // namespace content 618 } // namespace content
614 619
615 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 620 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698