| OLD | NEW |
| 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 18 matching lines...) Expand all Loading... |
| 29 // Weak. The hosted RootView, owned by hostedView_->GetWidget(). | 29 // Weak. The hosted RootView, owned by hostedView_->GetWidget(). |
| 30 views::View* hostedView_; | 30 views::View* hostedView_; |
| 31 | 31 |
| 32 // 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 |
| 33 // hierarchy rooted at |hostedView_|. Owned by the focused View. | 33 // hierarchy rooted at |hostedView_|. Owned by the focused View. |
| 34 ui::TextInputClient* textInputClient_; | 34 ui::TextInputClient* textInputClient_; |
| 35 | 35 |
| 36 // A tracking area installed to enable mouseMoved events. | 36 // A tracking area installed to enable mouseMoved events. |
| 37 ui::ScopedCrTrackingArea cursorTrackingArea_; | 37 ui::ScopedCrTrackingArea cursorTrackingArea_; |
| 38 | 38 |
| 39 // Whether the view is reacting to a keyDown event on the view. | 39 // The keyDown event currently being handled, nil otherwise. |
| 40 BOOL inKeyDown_; | 40 NSEvent* keyDownEvent_; |
| 41 | 41 |
| 42 // The last tooltip text, used to limit updates. | 42 // The last tooltip text, used to limit updates. |
| 43 base::string16 lastTooltipText_; | 43 base::string16 lastTooltipText_; |
| 44 | 44 |
| 45 // Whether to draw an almost-transparent background with rounded corners so | 45 // Whether to draw an almost-transparent background with rounded corners so |
| 46 // that OSX correctly blurs the background showing through. | 46 // that OSX correctly blurs the background showing through. |
| 47 BOOL drawMenuBackgroundForBlur_; | 47 BOOL drawMenuBackgroundForBlur_; |
| 48 | 48 |
| 49 // Whether dragging on the view moves the window. | 49 // Whether dragging on the view moves the window. |
| 50 BOOL mouseDownCanMoveWindow_; | 50 BOOL mouseDownCanMoveWindow_; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 80 // Update windowMask_ depending on the current view bounds. | 80 // Update windowMask_ depending on the current view bounds. |
| 81 - (void)updateWindowMask; | 81 - (void)updateWindowMask; |
| 82 | 82 |
| 83 // Notifies the associated FocusManager whether full keyboard access is enabled | 83 // Notifies the associated FocusManager whether full keyboard access is enabled |
| 84 // or not. | 84 // or not. |
| 85 - (void)updateFullKeyboardAccess; | 85 - (void)updateFullKeyboardAccess; |
| 86 | 86 |
| 87 @end | 87 @end |
| 88 | 88 |
| 89 #endif // UI_VIEWS_COCOA_BRIDGED_CONTENT_VIEW_H_ | 89 #endif // UI_VIEWS_COCOA_BRIDGED_CONTENT_VIEW_H_ |
| OLD | NEW |