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_aura.h

Issue 2775553002: Adds the ability for WebContentsDelegate to decide if event should be updated (Closed)
Patch Set: Fix compile Created 3 years, 9 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_AURA_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 // Used in tests to set a mock client for touch selection controller. It will 303 // Used in tests to set a mock client for touch selection controller. It will
304 // create a new touch selection controller for the new client. 304 // create a new touch selection controller for the new client.
305 void SetSelectionControllerClientForTest( 305 void SetSelectionControllerClientForTest(
306 std::unique_ptr<TouchSelectionControllerClientAura> client); 306 std::unique_ptr<TouchSelectionControllerClientAura> client);
307 307
308 // Exposed for tests. 308 // Exposed for tests.
309 cc::SurfaceId SurfaceIdForTesting() const override; 309 cc::SurfaceId SurfaceIdForTesting() const override;
310 310
311 // RenderWidgetHostViewEventHandler::Delegate: 311 // RenderWidgetHostViewEventHandler::Delegate:
312 gfx::Rect ConvertRectToScreen(const gfx::Rect& rect) const override; 312 gfx::Rect ConvertRectToScreen(const gfx::Rect& rect) const override;
313 void ForwardKeyboardEvent(const NativeWebKeyboardEvent& event) override; 313 void ForwardKeyboardEvent(const NativeWebKeyboardEvent& event,
314 bool* update_event) override;
314 RenderFrameHostImpl* GetFocusedFrame(); 315 RenderFrameHostImpl* GetFocusedFrame();
315 bool NeedsMouseCapture() override; 316 bool NeedsMouseCapture() override;
316 void SetTooltipsEnabled(bool enable) override; 317 void SetTooltipsEnabled(bool enable) override;
317 void ShowContextMenu(const ContextMenuParams& params) override; 318 void ShowContextMenu(const ContextMenuParams& params) override;
318 void Shutdown() override; 319 void Shutdown() override;
319 320
320 RenderWidgetHostViewEventHandler* event_handler() { 321 RenderWidgetHostViewEventHandler* event_handler() {
321 return event_handler_.get(); 322 return event_handler_.get();
322 } 323 }
323 324
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 std::unique_ptr<RenderWidgetHostViewEventHandler> event_handler_; 588 std::unique_ptr<RenderWidgetHostViewEventHandler> event_handler_;
588 589
589 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; 590 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_;
590 591
591 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 592 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
592 }; 593 };
593 594
594 } // namespace content 595 } // namespace content
595 596
596 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 597 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698