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

Side by Side Diff: content/browser/web_contents/web_contents_impl.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_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <functional> 10 #include <functional>
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 void RenderWidgetCreated(RenderWidgetHostImpl* render_widget_host) override; 626 void RenderWidgetCreated(RenderWidgetHostImpl* render_widget_host) override;
627 void RenderWidgetDeleted(RenderWidgetHostImpl* render_widget_host) override; 627 void RenderWidgetDeleted(RenderWidgetHostImpl* render_widget_host) override;
628 void RenderWidgetGotFocus(RenderWidgetHostImpl* render_widget_host) override; 628 void RenderWidgetGotFocus(RenderWidgetHostImpl* render_widget_host) override;
629 void RenderWidgetWasResized(RenderWidgetHostImpl* render_widget_host, 629 void RenderWidgetWasResized(RenderWidgetHostImpl* render_widget_host,
630 bool width_changed) override; 630 bool width_changed) override;
631 void ResizeDueToAutoResize(RenderWidgetHostImpl* render_widget_host, 631 void ResizeDueToAutoResize(RenderWidgetHostImpl* render_widget_host,
632 const gfx::Size& new_size) override; 632 const gfx::Size& new_size) override;
633 void ScreenInfoChanged() override; 633 void ScreenInfoChanged() override;
634 void UpdateDeviceScaleFactor(double device_scale_factor) override; 634 void UpdateDeviceScaleFactor(double device_scale_factor) override;
635 void GetScreenInfo(ScreenInfo* screen_info) override; 635 void GetScreenInfo(ScreenInfo* screen_info) override;
636 bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, 636 KeyboardEventProcessingResult PreHandleKeyboardEvent(
637 bool* is_keyboard_shortcut) override; 637 const NativeWebKeyboardEvent& event) override;
638 void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) override; 638 void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) override;
639 bool HandleWheelEvent(const blink::WebMouseWheelEvent& event) override; 639 bool HandleWheelEvent(const blink::WebMouseWheelEvent& event) override;
640 bool PreHandleGestureEvent(const blink::WebGestureEvent& event) override; 640 bool PreHandleGestureEvent(const blink::WebGestureEvent& event) override;
641 BrowserAccessibilityManager* GetRootBrowserAccessibilityManager() override; 641 BrowserAccessibilityManager* GetRootBrowserAccessibilityManager() override;
642 BrowserAccessibilityManager* GetOrCreateRootBrowserAccessibilityManager() 642 BrowserAccessibilityManager* GetOrCreateRootBrowserAccessibilityManager()
643 override; 643 override;
644 // The following 4 functions are already listed under WebContents overrides: 644 // The following 4 functions are already listed under WebContents overrides:
645 // void Cut() override; 645 // void Cut() override;
646 // void Copy() override; 646 // void Copy() override;
647 // void Paste() override; 647 // void Paste() override;
(...skipping 905 matching lines...) Expand 10 before | Expand all | Expand 10 after
1553 // Adds/removes a callback called on creation of each new WebContents. 1553 // Adds/removes a callback called on creation of each new WebContents.
1554 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1554 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1555 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1555 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1556 1556
1557 DISALLOW_COPY_AND_ASSIGN(FriendWrapper); 1557 DISALLOW_COPY_AND_ASSIGN(FriendWrapper);
1558 }; 1558 };
1559 1559
1560 } // namespace content 1560 } // namespace content
1561 1561
1562 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1562 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698