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

Side by Side Diff: ui/views/cocoa/bridged_content_view.h

Issue 2448173002: Fix processing of mouse events on MacViews.
Patch Set: Created 4 years, 1 month 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 UI_VIEWS_COCOA_BRIDGED_CONTENT_VIEW_H_ 5 #ifndef UI_VIEWS_COCOA_BRIDGED_CONTENT_VIEW_H_
6 #define UI_VIEWS_COCOA_BRIDGED_CONTENT_VIEW_H_ 6 #define UI_VIEWS_COCOA_BRIDGED_CONTENT_VIEW_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // This usually returns YES if the view is transparent. We want to control it 61 // This usually returns YES if the view is transparent. We want to control it
62 // so that BridgedNativeWidget can dynamically enable dragging of the window. 62 // so that BridgedNativeWidget can dynamically enable dragging of the window.
63 @property(assign) BOOL mouseDownCanMoveWindow; 63 @property(assign) BOOL mouseDownCanMoveWindow;
64 64
65 // Initialize the NSView -> views::View bridge. |viewToHost| must be non-NULL. 65 // Initialize the NSView -> views::View bridge. |viewToHost| must be non-NULL.
66 - (id)initWithView:(views::View*)viewToHost; 66 - (id)initWithView:(views::View*)viewToHost;
67 67
68 // Clear the hosted view. For example, if it is about to be destroyed. 68 // Clear the hosted view. For example, if it is about to be destroyed.
69 - (void)clearView; 69 - (void)clearView;
70 70
71 // Process a mouse event captured while the widget had global mouse capture.
72 - (void)processCapturedMouseEvent:(NSEvent*)theEvent;
73
74 // Mac's version of views::corewm::TooltipController::UpdateIfRequired(). 71 // Mac's version of views::corewm::TooltipController::UpdateIfRequired().
75 // Updates the tooltip on the ToolTipBaseView if the text needs to change. 72 // Updates the tooltip on the ToolTipBaseView if the text needs to change.
76 // |locationInContent| is the position from the top left of the window's 73 // |locationInContent| is the position from the top left of the window's
77 // contentRect (also this NSView's frame), as given by a ui::LocatedEvent. 74 // contentRect (also this NSView's frame), as given by a ui::LocatedEvent.
78 - (void)updateTooltipIfRequiredAt:(const gfx::Point&)locationInContent; 75 - (void)updateTooltipIfRequiredAt:(const gfx::Point&)locationInContent;
79 76
77 - (void)hideTooltipIfRequired;
78
Avi (use Gerrit) 2016/10/25 15:34:50 This seems unrelated.
snake 2016/10/25 15:46:18 On mouse exit, we should hide tooltip, in other ca
tapted 2016/10/26 00:57:00 Is this related to http://crbug.com/592085 ? Perha
snake 2016/10/26 12:44:56 No, this is not related. Because i have changed th
80 // Update windowMask_ depending on the current view bounds. 79 // Update windowMask_ depending on the current view bounds.
81 - (void)updateWindowMask; 80 - (void)updateWindowMask;
82 81
83 // Notifies the associated FocusManager whether full keyboard access is enabled 82 // Notifies the associated FocusManager whether full keyboard access is enabled
84 // or not. 83 // or not.
85 - (void)updateFullKeyboardAccess; 84 - (void)updateFullKeyboardAccess;
86 85
87 @end 86 @end
88 87
89 #endif // UI_VIEWS_COCOA_BRIDGED_CONTENT_VIEW_H_ 88 #endif // UI_VIEWS_COCOA_BRIDGED_CONTENT_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698