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

Side by Side Diff: chrome/browser/renderer_host/render_view_host.cc

Issue 235039: Fix conflicts between accelerator keys and HTML DOM accesskeys.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #include "chrome/browser/renderer_host/render_view_host.h" 5 #include "chrome/browser/renderer_host/render_view_host.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after
1435 UserMetrics::RecordComputedAction(action.c_str(), process()->profile()); 1435 UserMetrics::RecordComputedAction(action.c_str(), process()->profile());
1436 } 1436 }
1437 1437
1438 bool RenderViewHost::ShouldSendToRenderer(const NativeWebKeyboardEvent& event) { 1438 bool RenderViewHost::ShouldSendToRenderer(const NativeWebKeyboardEvent& event) {
1439 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); 1439 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate();
1440 if (!view) 1440 if (!view)
1441 return true; 1441 return true;
1442 return !view->IsReservedAccelerator(event); 1442 return !view->IsReservedAccelerator(event);
1443 } 1443 }
1444 1444
1445 void RenderViewHost::UnhandledKeyboardEvent( 1445 bool RenderViewHost::UnhandledKeyboardEvent(
1446 const NativeWebKeyboardEvent& event) { 1446 const NativeWebKeyboardEvent& event) {
1447 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); 1447 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate();
1448 if (view) { 1448 if (view) {
1449 view->HandleKeyboardEvent(event); 1449 return view->HandleKeyboardEvent(event);
1450 } 1450 }
1451 return false;
1451 } 1452 }
1452 1453
1453 void RenderViewHost::OnUserGesture() { 1454 void RenderViewHost::OnUserGesture() {
1454 RenderViewHostDelegate::BrowserIntegration* integration_delegate = 1455 RenderViewHostDelegate::BrowserIntegration* integration_delegate =
1455 delegate_->GetBrowserIntegrationDelegate(); 1456 delegate_->GetBrowserIntegrationDelegate();
1456 if (integration_delegate) 1457 if (integration_delegate)
1457 integration_delegate->OnUserGesture(); 1458 integration_delegate->OnUserGesture();
1458 } 1459 }
1459 1460
1460 void RenderViewHost::OnMissingPluginStatus(int status) { 1461 void RenderViewHost::OnMissingPluginStatus(int status) {
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
1725 #endif 1726 #endif
1726 } 1727 }
1727 1728
1728 void RenderViewHost::OnCSSInserted() { 1729 void RenderViewHost::OnCSSInserted() {
1729 delegate_->DidInsertCSS(); 1730 delegate_->DidInsertCSS();
1730 } 1731 }
1731 1732
1732 void RenderViewHost::UpdateBrowserWindowId(int window_id) { 1733 void RenderViewHost::UpdateBrowserWindowId(int window_id) {
1733 Send(new ViewMsg_UpdateBrowserWindowId(routing_id(), window_id)); 1734 Send(new ViewMsg_UpdateBrowserWindowId(routing_id(), window_id));
1734 } 1735 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698