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

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

Issue 303543004: MacViews: views_examples_with_content_exe working! Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add files Created 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_VIEWS_COCOA_BRIDGED_CONTENT_VIEW_H_
6 #define UI_VIEWS_COCOA_BRIDGED_CONTENT_VIEW_H_
7
8 #import <Cocoa/Cocoa.h>
9
10 namespace views {
11 class View;
12 }
13
14 // The NSView that sits as the root contentView of the NSWindow, whilst it has
15 // a views::RootView present. Bridges requests from Cocoa to the hosted View.
16 @interface BridgedContentView : NSView {
17 @private
18 // Weak. The hosted RootView, owned by hostedView_->GetWidget().
19 views::View* hostedView_;
20 }
21
22 @property(readonly, nonatomic) views::View* view;
23
24 // Initialize the NSView -> views::View bridge. |viewToHost| must be non-NULL.
25 - (id)initWithView:(views::View*)viewToHost;
26
27 // Clear the hosted view. For example, if it is about to be destroyed.
28 - (void)clearView;
29
30 @end
31
32 #endif // UI_VIEWS_COCOA_BRIDGED_CONTENT_VIEW_H_
OLDNEW
« no previous file with comments | « ui/views/accessibility/native_view_accessibility_mac.mm ('k') | ui/views/cocoa/bridged_content_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698