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

Side by Side Diff: chrome/browser/extensions/extension_view_host.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_HOST_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_HOST_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_HOST_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_HOST_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // ExtensionHost 61 // ExtensionHost
62 void OnDidStopFirstLoad() override; 62 void OnDidStopFirstLoad() override;
63 void LoadInitialURL() override; 63 void LoadInitialURL() override;
64 bool IsBackgroundPage() const override; 64 bool IsBackgroundPage() const override;
65 65
66 // content::WebContentsDelegate 66 // content::WebContentsDelegate
67 content::WebContents* OpenURLFromTab( 67 content::WebContents* OpenURLFromTab(
68 content::WebContents* source, 68 content::WebContents* source,
69 const content::OpenURLParams& params) override; 69 const content::OpenURLParams& params) override;
70 bool ShouldTransferNavigation(bool is_main_frame_navigation) override; 70 bool ShouldTransferNavigation(bool is_main_frame_navigation) override;
71 bool PreHandleKeyboardEvent(content::WebContents* source, 71 content::KeyboardEventProcessingResult PreHandleKeyboardEvent(
72 const content::NativeWebKeyboardEvent& event, 72 content::WebContents* source,
73 bool* is_keyboard_shortcut) override; 73 const content::NativeWebKeyboardEvent& event) override;
74 void HandleKeyboardEvent( 74 void HandleKeyboardEvent(
75 content::WebContents* source, 75 content::WebContents* source,
76 const content::NativeWebKeyboardEvent& event) override; 76 const content::NativeWebKeyboardEvent& event) override;
77 bool PreHandleGestureEvent(content::WebContents* source, 77 bool PreHandleGestureEvent(content::WebContents* source,
78 const blink::WebGestureEvent& event) override; 78 const blink::WebGestureEvent& event) override;
79 content::ColorChooser* OpenColorChooser( 79 content::ColorChooser* OpenColorChooser(
80 content::WebContents* web_contents, 80 content::WebContents* web_contents,
81 SkColor color, 81 SkColor color,
82 const std::vector<content::ColorSuggestion>& suggestions) override; 82 const std::vector<content::ColorSuggestion>& suggestions) override;
83 void RunFileChooser(content::RenderFrameHost* render_frame_host, 83 void RunFileChooser(content::RenderFrameHost* render_frame_host,
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 associated_web_contents_observer_; 128 associated_web_contents_observer_;
129 129
130 content::NotificationRegistrar registrar_; 130 content::NotificationRegistrar registrar_;
131 131
132 DISALLOW_COPY_AND_ASSIGN(ExtensionViewHost); 132 DISALLOW_COPY_AND_ASSIGN(ExtensionViewHost);
133 }; 133 };
134 134
135 } // namespace extensions 135 } // namespace extensions
136 136
137 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_HOST_H_ 137 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/tab_capture/offscreen_tab.cc ('k') | chrome/browser/extensions/extension_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698