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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 8343070: Support dispositon attribute. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "content/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 4502 matching lines...) Expand 10 before | Expand all | Expand 10 after
4513 } 4513 }
4514 Send(new ViewHostMsg_RegisterProtocolHandler(routing_id_, 4514 Send(new ViewHostMsg_RegisterProtocolHandler(routing_id_,
4515 UTF16ToUTF8(scheme), 4515 UTF16ToUTF8(scheme),
4516 absolute_url, 4516 absolute_url,
4517 title)); 4517 title));
4518 } 4518 }
4519 4519
4520 void RenderViewImpl::registerIntentHandler(const WebString& action, 4520 void RenderViewImpl::registerIntentHandler(const WebString& action,
4521 const WebString& type, 4521 const WebString& type,
4522 const WebString& href, 4522 const WebString& href,
4523 const WebString& title) { 4523 const WebString& title,
4524 Send(new ViewHostMsg_RegisterIntentHandler(routing_id_, 4524 const WebString& disposition) {
4525 Send(new IntentsHostMsg_RegisterIntentHandler(routing_id_,
4525 action, 4526 action,
4526 type, 4527 type,
4527 href, 4528 href,
4528 title)); 4529 title,
4530 disposition));
4529 } 4531 }
4530 4532
4531 WebKit::WebPageVisibilityState RenderViewImpl::visibilityState() const { 4533 WebKit::WebPageVisibilityState RenderViewImpl::visibilityState() const {
4532 WebKit::WebPageVisibilityState current_state = is_hidden() ? 4534 WebKit::WebPageVisibilityState current_state = is_hidden() ?
4533 WebKit::WebPageVisibilityStateHidden : 4535 WebKit::WebPageVisibilityStateHidden :
4534 WebKit::WebPageVisibilityStateVisible; 4536 WebKit::WebPageVisibilityStateVisible;
4535 WebKit::WebPageVisibilityState override_state = current_state; 4537 WebKit::WebPageVisibilityState override_state = current_state;
4536 if (content::GetContentClient()->renderer()-> 4538 if (content::GetContentClient()->renderer()->
4537 ShouldOverridePageVisibilityState(this, 4539 ShouldOverridePageVisibilityState(this,
4538 &override_state)) 4540 &override_state))
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
4673 return webview()->settings()->useThreadedCompositor(); 4675 return webview()->settings()->useThreadedCompositor();
4674 } 4676 }
4675 4677
4676 void RenderViewImpl::OnJavaBridgeInit( 4678 void RenderViewImpl::OnJavaBridgeInit(
4677 const IPC::ChannelHandle& channel_handle) { 4679 const IPC::ChannelHandle& channel_handle) {
4678 DCHECK(!java_bridge_dispatcher_.get()); 4680 DCHECK(!java_bridge_dispatcher_.get());
4679 #if defined(ENABLE_JAVA_BRIDGE) 4681 #if defined(ENABLE_JAVA_BRIDGE)
4680 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this, channel_handle)); 4682 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this, channel_handle));
4681 #endif 4683 #endif
4682 } 4684 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698