| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 void ExitFullscreen(LocalFrame&); | 53 void ExitFullscreen(LocalFrame&); |
| 54 | 54 |
| 55 // Called by content::RenderWidget (via WebWidget) to notify that we've | 55 // Called by content::RenderWidget (via WebWidget) to notify that we've |
| 56 // entered or exited fullscreen. This can be because we requested it, or it | 56 // entered or exited fullscreen. This can be because we requested it, or it |
| 57 // can be initiated by the browser directly. | 57 // can be initiated by the browser directly. |
| 58 void DidEnterFullscreen(); | 58 void DidEnterFullscreen(); |
| 59 void DidExitFullscreen(); | 59 void DidExitFullscreen(); |
| 60 | 60 |
| 61 // Called by Fullscreen (via ChromeClient) to notify that the fullscreen | 61 // Called by Fullscreen (via ChromeClient) to notify that the fullscreen |
| 62 // element has changed. | 62 // element has changed. |
| 63 void FullscreenElementChanged(Element*, Element*); | 63 void FullscreenElementChanged(Element* from_element, Element* to_element); |
| 64 | 64 |
| 65 bool IsFullscreenOrTransitioning() const { return state_ != State::kInitial; } | 65 bool IsFullscreenOrTransitioning() const { return state_ != State::kInitial; } |
| 66 | 66 |
| 67 void UpdateSize(); | 67 void UpdateSize(); |
| 68 | 68 |
| 69 void DidUpdateLayout(); | 69 void DidUpdateLayout(); |
| 70 | 70 |
| 71 protected: | 71 protected: |
| 72 explicit FullscreenController(WebViewBase*); | 72 explicit FullscreenController(WebViewBase*); |
| 73 | 73 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 97 float initial_page_scale_factor_ = 0.0f; | 97 float initial_page_scale_factor_ = 0.0f; |
| 98 IntSize initial_scroll_offset_; | 98 IntSize initial_scroll_offset_; |
| 99 FloatPoint initial_visual_viewport_offset_; | 99 FloatPoint initial_visual_viewport_offset_; |
| 100 bool initial_background_color_override_enabled_ = false; | 100 bool initial_background_color_override_enabled_ = false; |
| 101 RGBA32 initial_background_color_override_ = Color::kTransparent; | 101 RGBA32 initial_background_color_override_ = Color::kTransparent; |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 } // namespace blink | 104 } // namespace blink |
| 105 | 105 |
| 106 #endif | 106 #endif |
| OLD | NEW |