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

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

Issue 525523003: Remove two unnecessary params in ViewHostMsg_UpdateRect_Params (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android build Created 6 years, 3 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 CONTENT_EXPORT void SetDelegate( 223 CONTENT_EXPORT void SetDelegate(
224 NSObject<RenderWidgetHostViewMacDelegate>* delegate); 224 NSObject<RenderWidgetHostViewMacDelegate>* delegate);
225 void SetAllowPauseForResizeOrRepaint(bool allow); 225 void SetAllowPauseForResizeOrRepaint(bool allow);
226 226
227 // RenderWidgetHostView implementation. 227 // RenderWidgetHostView implementation.
228 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 228 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
229 virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE; 229 virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE;
230 virtual RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE; 230 virtual RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE;
231 virtual void SetSize(const gfx::Size& size) OVERRIDE; 231 virtual void SetSize(const gfx::Size& size) OVERRIDE;
232 virtual void SetBounds(const gfx::Rect& rect) OVERRIDE; 232 virtual void SetBounds(const gfx::Rect& rect) OVERRIDE;
233 virtual gfx::Vector2dF GetLastScrollOffset() const OVERRIDE;
233 virtual gfx::NativeView GetNativeView() const OVERRIDE; 234 virtual gfx::NativeView GetNativeView() const OVERRIDE;
234 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE; 235 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE;
235 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; 236 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE;
236 virtual bool HasFocus() const OVERRIDE; 237 virtual bool HasFocus() const OVERRIDE;
237 virtual bool IsSurfaceAvailableForCopy() const OVERRIDE; 238 virtual bool IsSurfaceAvailableForCopy() const OVERRIDE;
238 virtual void Show() OVERRIDE; 239 virtual void Show() OVERRIDE;
239 virtual void Hide() OVERRIDE; 240 virtual void Hide() OVERRIDE;
240 virtual bool IsShowing() OVERRIDE; 241 virtual bool IsShowing() OVERRIDE;
241 virtual gfx::Rect GetViewBounds() const OVERRIDE; 242 virtual gfx::Rect GetViewBounds() const OVERRIDE;
242 virtual void SetShowingContextMenu(bool showing) OVERRIDE; 243 virtual void SetShowingContextMenu(bool showing) OVERRIDE;
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 // to own this RenderWidgetHostViewMac object. Set to nil at the start of the 474 // to own this RenderWidgetHostViewMac object. Set to nil at the start of the
474 // destructor. 475 // destructor.
475 RenderWidgetHostViewCocoa* cocoa_view_; 476 RenderWidgetHostViewCocoa* cocoa_view_;
476 477
477 // Indicates if the page is loading. 478 // Indicates if the page is loading.
478 bool is_loading_; 479 bool is_loading_;
479 480
480 // Whether it's allowed to pause waiting for a new frame. 481 // Whether it's allowed to pause waiting for a new frame.
481 bool allow_pause_for_resize_or_repaint_; 482 bool allow_pause_for_resize_or_repaint_;
482 483
484 // The last scroll offset of the view.
485 gfx::Vector2dF last_scroll_offset_;
486
483 // The text to be shown in the tooltip, supplied by the renderer. 487 // The text to be shown in the tooltip, supplied by the renderer.
484 base::string16 tooltip_text_; 488 base::string16 tooltip_text_;
485 489
486 // Factory used to safely scope delayed calls to ShutdownHost(). 490 // Factory used to safely scope delayed calls to ShutdownHost().
487 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; 491 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_;
488 492
489 // selected text on the renderer. 493 // selected text on the renderer.
490 std::string selected_text_; 494 std::string selected_text_;
491 495
492 // The window used for popup widgets. 496 // The window used for popup widgets.
(...skipping 19 matching lines...) Expand all
512 516
513 // The current caret bounds. 517 // The current caret bounds.
514 gfx::Rect caret_rect_; 518 gfx::Rect caret_rect_;
515 519
516 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); 520 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
517 }; 521 };
518 522
519 } // namespace content 523 } // namespace content
520 524
521 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 525 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698