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

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

Issue 618013003: Support fullscreen for non-video elements in the WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactorFullscreenNonMedia
Patch Set: Created 6 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
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 #include "content/renderer/render_widget.h" 5 #include "content/renderer/render_widget.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 1942 matching lines...) Expand 10 before | Expand all | Expand 10 after
1953 // If not initialized, default to white. Note that 0 is different from black 1953 // If not initialized, default to white. Note that 0 is different from black
1954 // as black still has alpha 0xFF. 1954 // as black still has alpha 0xFF.
1955 if (!bg_color) 1955 if (!bg_color)
1956 bg_color = SK_ColorWHITE; 1956 bg_color = SK_ColorWHITE;
1957 1957
1958 if (bg_color != body_background_color_) { 1958 if (bg_color != body_background_color_) {
1959 body_background_color_ = bg_color; 1959 body_background_color_ = bg_color;
1960 Send(new ViewHostMsg_DidChangeBodyBackgroundColor(routing_id(), bg_color)); 1960 Send(new ViewHostMsg_DidChangeBodyBackgroundColor(routing_id(), bg_color));
1961 } 1961 }
1962 } 1962 }
1963
1964 void RenderWidget::didEnterFullscreen() {
1965 Send(new ViewHostMsg_DidEnterFullscreen(routing_id_));
1966 }
1967
1968 void RenderWidget::didExitFullscreen() {
1969 Send(new ViewHostMsg_DidExitFullscreen(routing_id_));
1970 }
1963 #endif 1971 #endif
1964 1972
1965 bool RenderWidget::CanComposeInline() { 1973 bool RenderWidget::CanComposeInline() {
1966 return true; 1974 return true;
1967 } 1975 }
1968 1976
1969 WebScreenInfo RenderWidget::screenInfo() { 1977 WebScreenInfo RenderWidget::screenInfo() {
1970 return screen_info_; 1978 return screen_info_;
1971 } 1979 }
1972 1980
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
2193 void RenderWidget::RegisterVideoHoleFrame(RenderFrameImpl* frame) { 2201 void RenderWidget::RegisterVideoHoleFrame(RenderFrameImpl* frame) {
2194 video_hole_frames_.AddObserver(frame); 2202 video_hole_frames_.AddObserver(frame);
2195 } 2203 }
2196 2204
2197 void RenderWidget::UnregisterVideoHoleFrame(RenderFrameImpl* frame) { 2205 void RenderWidget::UnregisterVideoHoleFrame(RenderFrameImpl* frame) {
2198 video_hole_frames_.RemoveObserver(frame); 2206 video_hole_frames_.RemoveObserver(frame);
2199 } 2207 }
2200 #endif // defined(VIDEO_HOLE) 2208 #endif // defined(VIDEO_HOLE)
2201 2209
2202 } // namespace content 2210 } // namespace content
OLDNEW
« content/common/view_messages.h ('K') | « content/renderer/render_widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698