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

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: Remove #if def Created 3 years, 6 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 456
458 // AcceleratedWidgetMacNSView implementation. 457 // AcceleratedWidgetMacNSView implementation.
459 NSView* AcceleratedWidgetGetNSView() const override; 458 NSView* AcceleratedWidgetGetNSView() const override;
460 void AcceleratedWidgetGetVSyncParameters( 459 void AcceleratedWidgetGetVSyncParameters(
461 base::TimeTicks* timebase, base::TimeDelta* interval) const override; 460 base::TimeTicks* timebase, base::TimeDelta* interval) const override;
462 void AcceleratedWidgetSwapCompleted() override; 461 void AcceleratedWidgetSwapCompleted() override;
463 462
464 // Exposed for testing. 463 // Exposed for testing.
465 cc::SurfaceId SurfaceIdForTesting() const override; 464 cc::SurfaceId SurfaceIdForTesting() const override;
466 465
466 void SetShowingContextMenu(bool showing) override;
467
467 // Helper method to obtain ui::TextInputType for the active widget from the 468 // Helper method to obtain ui::TextInputType for the active widget from the
468 // TextInputManager. 469 // TextInputManager.
469 ui::TextInputType GetTextInputType(); 470 ui::TextInputType GetTextInputType();
470 471
471 // Helper method to obtain the currently active widget from TextInputManager. 472 // Helper method to obtain the currently active widget from TextInputManager.
472 // An active widget is a RenderWidget which is currently focused and has a 473 // An active widget is a RenderWidget which is currently focused and has a
473 // |TextInputState.type| which is not ui::TEXT_INPUT_TYPE_NONE. 474 // |TextInputState.type| which is not ui::TEXT_INPUT_TYPE_NONE.
474 RenderWidgetHostImpl* GetActiveWidget(); 475 RenderWidgetHostImpl* GetActiveWidget();
475 476
476 // Returns the composition range information for the active RenderWidgetHost 477 // Returns the composition range information for the active RenderWidgetHost
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 579
579 // Factory used to safely scope delayed calls to ShutdownHost(). 580 // Factory used to safely scope delayed calls to ShutdownHost().
580 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; 581 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_;
581 582
582 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); 583 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
583 }; 584 };
584 585
585 } // namespace content 586 } // namespace content
586 587
587 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 588 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698