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

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

Issue 1747803003: MacViews: Implement Tab Dragging (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed click simulation, reimplemented CocoaWindowMoveLoop without relying on the WindowServer. Created 4 years, 7 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 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 @property(readonly, nonatomic) views::View* hostedView; 55 @property(readonly, nonatomic) views::View* hostedView;
56 @property(assign, nonatomic) ui::TextInputClient* textInputClient; 56 @property(assign, nonatomic) ui::TextInputClient* textInputClient;
57 @property(assign, nonatomic) BOOL drawMenuBackgroundForBlur; 57 @property(assign, nonatomic) BOOL drawMenuBackgroundForBlur;
58 58
59 // Extends an atomic, readonly property on NSView to make it assignable. 59 // Extends an atomic, readonly property on NSView to make it assignable.
60 // This usually returns YES if the view is transparent. We want to control it 60 // This usually returns YES if the view is transparent. We want to control it
61 // so that BridgedNativeWidget can dynamically enable dragging of the window. 61 // so that BridgedNativeWidget can dynamically enable dragging of the window.
62 @property(assign) BOOL mouseDownCanMoveWindow; 62 @property(assign) BOOL mouseDownCanMoveWindow;
63 63
64 // When |flag| is YES, will make BridgedContentView ignore all mouse events.
65 + (void)setIgnoreMouseEvents:(BOOL)flag;
66
64 // Initialize the NSView -> views::View bridge. |viewToHost| must be non-NULL. 67 // Initialize the NSView -> views::View bridge. |viewToHost| must be non-NULL.
65 - (id)initWithView:(views::View*)viewToHost; 68 - (id)initWithView:(views::View*)viewToHost;
66 69
67 // Clear the hosted view. For example, if it is about to be destroyed. 70 // Clear the hosted view. For example, if it is about to be destroyed.
68 - (void)clearView; 71 - (void)clearView;
69 72
70 // Process a mouse event captured while the widget had global mouse capture. 73 // Process a mouse event captured while the widget had global mouse capture.
71 - (void)processCapturedMouseEvent:(NSEvent*)theEvent; 74 - (void)processCapturedMouseEvent:(NSEvent*)theEvent;
72 75
73 // Mac's version of views::corewm::TooltipController::UpdateIfRequired(). 76 // Mac's version of views::corewm::TooltipController::UpdateIfRequired().
74 // Updates the tooltip on the ToolTipBaseView if the text needs to change. 77 // Updates the tooltip on the ToolTipBaseView if the text needs to change.
75 // |locationInContent| is the position from the top left of the window's 78 // |locationInContent| is the position from the top left of the window's
76 // contentRect (also this NSView's frame), as given by a ui::LocatedEvent. 79 // contentRect (also this NSView's frame), as given by a ui::LocatedEvent.
77 - (void)updateTooltipIfRequiredAt:(const gfx::Point&)locationInContent; 80 - (void)updateTooltipIfRequiredAt:(const gfx::Point&)locationInContent;
78 81
79 // Update windowMask_ depending on the current view bounds. 82 // Update windowMask_ depending on the current view bounds.
80 - (void)updateWindowMask; 83 - (void)updateWindowMask;
81 84
82 // Notifies the associated FocusManager whether full keyboard access is enabled 85 // Notifies the associated FocusManager whether full keyboard access is enabled
83 // or not. 86 // or not.
84 - (void)updateFullKeyboardAccess; 87 - (void)updateFullKeyboardAccess;
85 88
86 @end 89 @end
87 90
88 #endif // UI_VIEWS_COCOA_BRIDGED_CONTENT_VIEW_H_ 91 #endif // UI_VIEWS_COCOA_BRIDGED_CONTENT_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698