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

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

Issue 208020: Change the view mode when switching between moles and toolstrips, and (Closed)
Patch Set: build system workarounds Created 11 years, 3 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) 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 <vector> 8 #include <vector>
9 9
10 #include "app/l10n_util.h" 10 #include "app/l10n_util.h"
(...skipping 1642 matching lines...) Expand 10 before | Expand all | Expand 10 after
1653 const std::string& error) { 1653 const std::string& error) {
1654 Send(new ViewMsg_ExtensionResponse(routing_id(), request_id, success, 1654 Send(new ViewMsg_ExtensionResponse(routing_id(), request_id, success,
1655 response, error)); 1655 response, error));
1656 } 1656 }
1657 1657
1658 void RenderViewHost::BlockExtensionRequest(int request_id) { 1658 void RenderViewHost::BlockExtensionRequest(int request_id) {
1659 SendExtensionResponse(request_id, false, "", 1659 SendExtensionResponse(request_id, false, "",
1660 "Access to extension API denied."); 1660 "Access to extension API denied.");
1661 } 1661 }
1662 1662
1663 void RenderViewHost::ViewTypeChanged(ViewType::Type type) {
1664 Send(new ViewMsg_NotifyRenderViewType(routing_id(), type));
1665 }
1666
1663 void RenderViewHost::OnExtensionPostMessage( 1667 void RenderViewHost::OnExtensionPostMessage(
1664 int port_id, const std::string& message) { 1668 int port_id, const std::string& message) {
1665 if (process()->profile()->GetExtensionMessageService()) { 1669 if (process()->profile()->GetExtensionMessageService()) {
1666 process()->profile()->GetExtensionMessageService()-> 1670 process()->profile()->GetExtensionMessageService()->
1667 PostMessageFromRenderer(port_id, message); 1671 PostMessageFromRenderer(port_id, message);
1668 } 1672 }
1669 } 1673 }
1670 1674
1671 void RenderViewHost::OnAccessibilityFocusChange(int acc_obj_id) { 1675 void RenderViewHost::OnAccessibilityFocusChange(int acc_obj_id) {
1672 #if defined(OS_WIN) 1676 #if defined(OS_WIN)
(...skipping 14 matching lines...) Expand all
1687 } 1691 }
1688 1692
1689 void RenderViewHost::ResetModalDialogEvent() { 1693 void RenderViewHost::ResetModalDialogEvent() {
1690 if (--modal_dialog_count_ == 0) 1694 if (--modal_dialog_count_ == 0)
1691 modal_dialog_event_->Reset(); 1695 modal_dialog_event_->Reset();
1692 } 1696 }
1693 1697
1694 void RenderViewHost::UpdateBrowserWindowId(int window_id) { 1698 void RenderViewHost::UpdateBrowserWindowId(int window_id) {
1695 Send(new ViewMsg_UpdateBrowserWindowId(routing_id(), window_id)); 1699 Send(new ViewMsg_UpdateBrowserWindowId(routing_id(), window_id));
1696 } 1700 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.h ('k') | chrome/browser/resources/extensions_toolstrip.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698