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

Side by Side Diff: ui/views/controls/webview/webview.h

Issue 1255783002: [Mac] Factor out keyboard shortcut handling from ChromeEventProcessingWindow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@execute
Patch Set: Separate CommandDispatcher and CommandDispatcherDelegate. Created 5 years, 4 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 UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_ 5 #ifndef UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_
6 #define UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_ 6 #define UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "content/public/browser/render_process_host_observer.h" 10 #include "content/public/browser/render_process_host_observer.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 gfx::NativeViewAccessible GetNativeViewAccessible() override; 114 gfx::NativeViewAccessible GetNativeViewAccessible() override;
115 gfx::Size GetPreferredSize() const override; 115 gfx::Size GetPreferredSize() const override;
116 116
117 // Overridden from content::RenderProcessHostObserver: 117 // Overridden from content::RenderProcessHostObserver:
118 void RenderProcessExited(content::RenderProcessHost* host, 118 void RenderProcessExited(content::RenderProcessHost* host,
119 base::TerminationStatus status, 119 base::TerminationStatus status,
120 int exit_code) override; 120 int exit_code) override;
121 void RenderProcessHostDestroyed(content::RenderProcessHost* host) override; 121 void RenderProcessHostDestroyed(content::RenderProcessHost* host) override;
122 122
123 // Overridden from content::WebContentsDelegate: 123 // Overridden from content::WebContentsDelegate:
124 void HandleKeyboardEvent(
125 content::WebContents* source,
126 const content::NativeWebKeyboardEvent& event) override;
124 bool EmbedsFullscreenWidget() const override; 127 bool EmbedsFullscreenWidget() const override;
125 128
126 // Overridden from content::WebContentsObserver: 129 // Overridden from content::WebContentsObserver:
127 void RenderViewReady() override; 130 void RenderViewReady() override;
128 void RenderViewDeleted(content::RenderViewHost* render_view_host) override; 131 void RenderViewDeleted(content::RenderViewHost* render_view_host) override;
129 void RenderViewHostChanged(content::RenderViewHost* old_host, 132 void RenderViewHostChanged(content::RenderViewHost* old_host,
130 content::RenderViewHost* new_host) override; 133 content::RenderViewHost* new_host) override;
131 void WebContentsDestroyed() override; 134 void WebContentsDestroyed() override;
132 void DidShowFullscreenWidget(int routing_id) override; 135 void DidShowFullscreenWidget(int routing_id) override;
133 void DidDestroyFullscreenWidget(int routing_id) override; 136 void DidDestroyFullscreenWidget(int routing_id) override;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 content::BrowserContext* browser_context_; 174 content::BrowserContext* browser_context_;
172 bool allow_accelerators_; 175 bool allow_accelerators_;
173 gfx::Size preferred_size_; 176 gfx::Size preferred_size_;
174 177
175 DISALLOW_COPY_AND_ASSIGN(WebView); 178 DISALLOW_COPY_AND_ASSIGN(WebView);
176 }; 179 };
177 180
178 } // namespace views 181 } // namespace views
179 182
180 #endif // UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_ 183 #endif // UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698