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

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

Issue 2890143003: Move ContextMenu show/hide state tracking to WebContents (Closed)
Patch Set: Fixing another compile error Created 3 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
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/IOSurface.h> 9 #include <IOSurface/IOSurface.h>
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 gfx::Vector2dF GetLastScrollOffset() const override; 262 gfx::Vector2dF GetLastScrollOffset() const override;
263 gfx::NativeView GetNativeView() const override; 263 gfx::NativeView GetNativeView() const override;
264 gfx::NativeViewAccessible GetNativeViewAccessible() override; 264 gfx::NativeViewAccessible GetNativeViewAccessible() override;
265 bool HasFocus() const override; 265 bool HasFocus() const override;
266 void Show() override; 266 void Show() override;
267 void Hide() override; 267 void Hide() override;
268 bool IsShowing() override; 268 bool IsShowing() override;
269 void WasUnOccluded() override; 269 void WasUnOccluded() override;
270 void WasOccluded() override; 270 void WasOccluded() override;
271 gfx::Rect GetViewBounds() const override; 271 gfx::Rect GetViewBounds() const override;
272 void SetShowingContextMenu(bool showing) override;
273 void SetActive(bool active) override; 272 void SetActive(bool active) override;
274 void ShowDefinitionForSelection() override; 273 void ShowDefinitionForSelection() override;
275 bool SupportsSpeech() const override; 274 bool SupportsSpeech() const override;
276 void SpeakSelection() override; 275 void SpeakSelection() override;
277 bool IsSpeaking() const override; 276 bool IsSpeaking() const override;
278 void StopSpeaking() override; 277 void StopSpeaking() override;
279 void SetBackgroundColor(SkColor color) override; 278 void SetBackgroundColor(SkColor color) override;
280 SkColor background_color() const override; 279 SkColor background_color() const override;
281 void SetNeedsBeginFrames(bool needs_begin_frames) override; 280 void SetNeedsBeginFrames(bool needs_begin_frames) override;
282 281
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 457
459 // AcceleratedWidgetMacNSView implementation. 458 // AcceleratedWidgetMacNSView implementation.
460 NSView* AcceleratedWidgetGetNSView() const override; 459 NSView* AcceleratedWidgetGetNSView() const override;
461 void AcceleratedWidgetGetVSyncParameters( 460 void AcceleratedWidgetGetVSyncParameters(
462 base::TimeTicks* timebase, base::TimeDelta* interval) const override; 461 base::TimeTicks* timebase, base::TimeDelta* interval) const override;
463 void AcceleratedWidgetSwapCompleted() override; 462 void AcceleratedWidgetSwapCompleted() override;
464 463
465 // Exposed for testing. 464 // Exposed for testing.
466 cc::SurfaceId SurfaceIdForTesting() const override; 465 cc::SurfaceId SurfaceIdForTesting() const override;
467 466
467 void SetShowingContextMenu(bool showing) override;
468
468 // Helper method to obtain ui::TextInputType for the active widget from the 469 // Helper method to obtain ui::TextInputType for the active widget from the
469 // TextInputManager. 470 // TextInputManager.
470 ui::TextInputType GetTextInputType(); 471 ui::TextInputType GetTextInputType();
471 472
472 // Helper method to obtain the currently active widget from TextInputManager. 473 // Helper method to obtain the currently active widget from TextInputManager.
473 // An active widget is a RenderWidget which is currently focused and has a 474 // An active widget is a RenderWidget which is currently focused and has a
474 // |TextInputState.type| which is not ui::TEXT_INPUT_TYPE_NONE. 475 // |TextInputState.type| which is not ui::TEXT_INPUT_TYPE_NONE.
475 RenderWidgetHostImpl* GetActiveWidget(); 476 RenderWidgetHostImpl* GetActiveWidget();
476 477
477 // Returns the composition range information for the active RenderWidgetHost 478 // Returns the composition range information for the active RenderWidgetHost
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 568
568 // Factory used to safely scope delayed calls to ShutdownHost(). 569 // Factory used to safely scope delayed calls to ShutdownHost().
569 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; 570 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_;
570 571
571 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); 572 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
572 }; 573 };
573 574
574 } // namespace content 575 } // namespace content
575 576
576 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 577 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698