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

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

Issue 1964283002: MacViews: Implemented Drag & Drop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix for dcheng Created 4 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 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"
11 #import "ui/base/cocoa/tool_tip_base_view.h" 11 #import "ui/base/cocoa/tool_tip_base_view.h"
12 #import "ui/base/cocoa/tracking_area.h" 12 #import "ui/base/cocoa/tracking_area.h"
13 13
14 namespace ui { 14 namespace ui {
15 class TextInputClient; 15 class TextInputClient;
16 } 16 }
17 17
18 namespace views { 18 namespace views {
19 class View; 19 class View;
20 } 20 }
21 21
22 // The NSView that sits as the root contentView of the NSWindow, whilst it has 22 // The NSView that sits as the root contentView of the NSWindow, whilst it has
23 // a views::RootView present. Bridges requests from Cocoa to the hosted 23 // a views::RootView present. Bridges requests from Cocoa to the hosted
24 // views::View. 24 // views::View.
25 @interface BridgedContentView 25 @interface BridgedContentView : ToolTipBaseView<NSTextInputClient,
26 : ToolTipBaseView<NSTextInputClient, NSUserInterfaceValidations> { 26 NSUserInterfaceValidations,
27 NSDraggingSource> {
27 @private 28 @private
28 // Weak. The hosted RootView, owned by hostedView_->GetWidget(). 29 // Weak. The hosted RootView, owned by hostedView_->GetWidget().
29 views::View* hostedView_; 30 views::View* hostedView_;
30 31
31 // Weak. If non-null the TextInputClient of the currently focused View in the 32 // Weak. If non-null the TextInputClient of the currently focused View in the
32 // hierarchy rooted at |hostedView_|. Owned by the focused View. 33 // hierarchy rooted at |hostedView_|. Owned by the focused View.
33 ui::TextInputClient* textInputClient_; 34 ui::TextInputClient* textInputClient_;
34 35
35 // A tracking area installed to enable mouseMoved events. 36 // A tracking area installed to enable mouseMoved events.
36 ui::ScopedCrTrackingArea cursorTrackingArea_; 37 ui::ScopedCrTrackingArea cursorTrackingArea_;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // Update windowMask_ depending on the current view bounds. 80 // Update windowMask_ depending on the current view bounds.
80 - (void)updateWindowMask; 81 - (void)updateWindowMask;
81 82
82 // Notifies the associated FocusManager whether full keyboard access is enabled 83 // Notifies the associated FocusManager whether full keyboard access is enabled
83 // or not. 84 // or not.
84 - (void)updateFullKeyboardAccess; 85 - (void)updateFullKeyboardAccess;
85 86
86 @end 87 @end
87 88
88 #endif // UI_VIEWS_COCOA_BRIDGED_CONTENT_VIEW_H_ 89 #endif // UI_VIEWS_COCOA_BRIDGED_CONTENT_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698