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

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

Issue 8273029: PPAPI Fullscreen: In ViewChanged, check if the browser entered fullscreen mode (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | webkit/plugins/ppapi/plugin_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 const std::string& mime_type, 547 const std::string& mime_type,
548 webkit::WebPluginInfo* plugin_info, 548 webkit::WebPluginInfo* plugin_info,
549 std::string* actual_mime_type) { 549 std::string* actual_mime_type) {
550 bool found = false; 550 bool found = false;
551 Send(new ViewHostMsg_GetPluginInfo( 551 Send(new ViewHostMsg_GetPluginInfo(
552 routing_id_, url, page_url, mime_type, &found, plugin_info, 552 routing_id_, url, page_url, mime_type, &found, plugin_info,
553 actual_mime_type)); 553 actual_mime_type));
554 return found; 554 return found;
555 } 555 }
556 556
557 bool RenderViewImpl::IsInFullscreenMode() {
darin (slow to review) 2011/10/14 07:54:45 Actually, I plan on making this a method of Render
558 // TODO(darin): add a boolean flag to ViewMsg_Resize indicating whether or
559 // not we are in fullscreen mode. Return the value that was reported via the
560 // ViewMsg_Resize IPC.
561 return true;
562 }
563
557 bool RenderViewImpl::OnMessageReceived(const IPC::Message& message) { 564 bool RenderViewImpl::OnMessageReceived(const IPC::Message& message) {
558 WebFrame* main_frame = webview() ? webview()->mainFrame() : NULL; 565 WebFrame* main_frame = webview() ? webview()->mainFrame() : NULL;
559 if (main_frame) 566 if (main_frame)
560 content::GetContentClient()->SetActiveURL(main_frame->document().url()); 567 content::GetContentClient()->SetActiveURL(main_frame->document().url());
561 568
562 ObserverListBase<RenderViewObserver>::Iterator it(observers_); 569 ObserverListBase<RenderViewObserver>::Iterator it(observers_);
563 RenderViewObserver* observer; 570 RenderViewObserver* observer;
564 while ((observer = it.GetNext()) != NULL) 571 while ((observer = it.GetNext()) != NULL)
565 if (observer->OnMessageReceived(message)) 572 if (observer->OnMessageReceived(message))
566 return true; 573 return true;
(...skipping 4025 matching lines...) Expand 10 before | Expand all | Expand 10 after
4592 pepper_delegate_.OnLockMouseACK(succeeded); 4599 pepper_delegate_.OnLockMouseACK(succeeded);
4593 } 4600 }
4594 4601
4595 void RenderViewImpl::OnMouseLockLost() { 4602 void RenderViewImpl::OnMouseLockLost() {
4596 pepper_delegate_.OnMouseLockLost(); 4603 pepper_delegate_.OnMouseLockLost();
4597 } 4604 }
4598 4605
4599 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { 4606 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const {
4600 return webview()->settings()->useThreadedCompositor(); 4607 return webview()->settings()->useThreadedCompositor();
4601 } 4608 }
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | webkit/plugins/ppapi/plugin_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698