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

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

Issue 638123003: Prepare to move BrowserCompositorViewMac to ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use __OBJC__ Created 6 years, 2 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 (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>
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 bool defer_compositor_lock) override; 422 bool defer_compositor_lock) override;
423 virtual gfx::Size DesiredFrameSize() override; 423 virtual gfx::Size DesiredFrameSize() override;
424 virtual float CurrentDeviceScaleFactor() override; 424 virtual float CurrentDeviceScaleFactor() override;
425 virtual gfx::Size ConvertViewSizeToPixel(const gfx::Size& size) override; 425 virtual gfx::Size ConvertViewSizeToPixel(const gfx::Size& size) override;
426 virtual DelegatedFrameHost* GetDelegatedFrameHost() const override; 426 virtual DelegatedFrameHost* GetDelegatedFrameHost() const override;
427 427
428 // BrowserCompositorViewMacClient implementation. 428 // BrowserCompositorViewMacClient implementation.
429 virtual bool BrowserCompositorViewShouldAckImmediately() const override; 429 virtual bool BrowserCompositorViewShouldAckImmediately() const override;
430 virtual void BrowserCompositorViewFrameSwapped( 430 virtual void BrowserCompositorViewFrameSwapped(
431 const std::vector<ui::LatencyInfo>& latency_info) override; 431 const std::vector<ui::LatencyInfo>& latency_info) override;
432 virtual NSView* BrowserCompositorSuperview() override;
433 virtual ui::Layer* BrowserCompositorRootLayer() override;
434 432
435 private: 433 private:
436 friend class RenderWidgetHostViewMacTest; 434 friend class RenderWidgetHostViewMacTest;
437 435
438 // Returns whether this render view is a popup (autocomplete window). 436 // Returns whether this render view is a popup (autocomplete window).
439 bool IsPopup() const; 437 bool IsPopup() const;
440 438
441 // Shuts down the render_widget_host_. This is a separate function so we can 439 // Shuts down the render_widget_host_. This is a separate function so we can
442 // invoke it from the message loop. 440 // invoke it from the message loop.
443 void ShutdownHost(); 441 void ShutdownHost();
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 504
507 // The current caret bounds. 505 // The current caret bounds.
508 gfx::Rect caret_rect_; 506 gfx::Rect caret_rect_;
509 507
510 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); 508 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
511 }; 509 };
512 510
513 } // namespace content 511 } // namespace content
514 512
515 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 513 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_process_host_ui_shim.cc ('k') | content/browser/renderer_host/render_widget_host_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698