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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_mac.h

Issue 753933002: MacViews: Move content::AcceleratedWidget to new component, ui/accelerated_widget_mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20141124-MacViews-MoveSoftwareLayerMac-fromcl
Patch Set: rebase to master Created 6 years 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 #include <IOSurface/IOSurfaceAPI.h> 9 #include <IOSurface/IOSurfaceAPI.h>
10 #include <list> 10 #include <list>
11 #include <map> 11 #include <map>
12 #include <string> 12 #include <string>
13 #include <utility> 13 #include <utility>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/mac/scoped_nsobject.h" 16 #include "base/mac/scoped_nsobject.h"
17 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
18 #include "base/memory/weak_ptr.h" 18 #include "base/memory/weak_ptr.h"
19 #include "base/time/time.h" 19 #include "base/time/time.h"
20 #include "content/browser/compositor/browser_compositor_ca_layer_tree_mac.h"
21 #include "content/browser/compositor/browser_compositor_view_mac.h" 20 #include "content/browser/compositor/browser_compositor_view_mac.h"
22 #include "content/browser/compositor/delegated_frame_host.h" 21 #include "content/browser/compositor/delegated_frame_host.h"
23 #include "content/browser/compositor/io_surface_layer_mac.h"
24 #include "content/browser/renderer_host/display_link_mac.h" 22 #include "content/browser/renderer_host/display_link_mac.h"
25 #include "content/browser/renderer_host/render_widget_host_view_base.h" 23 #include "content/browser/renderer_host/render_widget_host_view_base.h"
26 #include "content/browser/renderer_host/software_frame_manager.h" 24 #include "content/browser/renderer_host/software_frame_manager.h"
27 #include "content/common/content_export.h" 25 #include "content/common/content_export.h"
28 #include "content/common/cursors/webcursor.h" 26 #include "content/common/cursors/webcursor.h"
29 #include "content/common/edit_command.h" 27 #include "content/common/edit_command.h"
30 #import "content/public/browser/render_widget_host_view_mac_base.h" 28 #import "content/public/browser/render_widget_host_view_mac_base.h"
31 #include "ipc/ipc_sender.h" 29 #include "ipc/ipc_sender.h"
32 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" 30 #include "third_party/WebKit/public/web/WebCompositionUnderline.h"
33 #include "ui/base/cocoa/base_view.h" 31 #include "ui/base/cocoa/base_view.h"
34 #include "ui/base/cocoa/remote_layer_api.h" 32 #include "ui/base/cocoa/remote_layer_api.h"
33 #include "ui/compositor/mac/accelerated_widget_mac.h"
34 #include "ui/compositor/mac/io_surface_layer_mac.h"
35 #include "ui/gfx/display_observer.h" 35 #include "ui/gfx/display_observer.h"
36 36
37 namespace content { 37 namespace content {
38 class RenderWidgetHostViewMac; 38 class RenderWidgetHostViewMac;
39 class RenderWidgetHostViewMacEditCommandHelper; 39 class RenderWidgetHostViewMacEditCommandHelper;
40 class WebContents; 40 class WebContents;
41 } 41 }
42 42
43 namespace ui { 43 namespace ui {
44 class Compositor; 44 class Compositor;
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 // Comment excerpted from render_widget_host.h: 198 // Comment excerpted from render_widget_host.h:
199 // 199 //
200 // "The lifetime of the RenderWidgetHost* is tied to the render process. 200 // "The lifetime of the RenderWidgetHost* is tied to the render process.
201 // If the render process dies, the RenderWidgetHost* goes away and all 201 // If the render process dies, the RenderWidgetHost* goes away and all
202 // references to it must become NULL." 202 // references to it must become NULL."
203 // 203 //
204 // RenderWidgetHostView class hierarchy described in render_widget_host_view.h. 204 // RenderWidgetHostView class hierarchy described in render_widget_host_view.h.
205 class CONTENT_EXPORT RenderWidgetHostViewMac 205 class CONTENT_EXPORT RenderWidgetHostViewMac
206 : public RenderWidgetHostViewBase, 206 : public RenderWidgetHostViewBase,
207 public DelegatedFrameHostClient, 207 public DelegatedFrameHostClient,
208 public AcceleratedWidgetMacNSView, 208 public ui::AcceleratedWidgetMacNSView,
209 public IPC::Sender, 209 public IPC::Sender,
210 public gfx::DisplayObserver { 210 public gfx::DisplayObserver {
211 public: 211 public:
212 // The view will associate itself with the given widget. The native view must 212 // The view will associate itself with the given widget. The native view must
213 // be hooked up immediately to the view hierarchy, or else when it is 213 // be hooked up immediately to the view hierarchy, or else when it is
214 // deleted it will delete this out from under the caller. 214 // deleted it will delete this out from under the caller.
215 // 215 //
216 // When |is_guest_view_hack| is true, this view isn't really the view for 216 // When |is_guest_view_hack| is true, this view isn't really the view for
217 // the |widget|, a RenderWidgetHostViewGuest is. 217 // the |widget|, a RenderWidgetHostViewGuest is.
218 // TODO(lazyboy): Remove |is_guest_view_hack| once BrowserPlugin has migrated 218 // TODO(lazyboy): Remove |is_guest_view_hack| once BrowserPlugin has migrated
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 551
552 // The current caret bounds. 552 // The current caret bounds.
553 gfx::Rect caret_rect_; 553 gfx::Rect caret_rect_;
554 554
555 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); 555 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
556 }; 556 };
557 557
558 } // namespace content 558 } // namespace content
559 559
560 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 560 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698