| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_CONTENTS_WEB_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_CONTENTS_WEB_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_CONTENTS_WEB_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_CONTENTS_WEB_VIEW_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 // Sets the status bubble, which should be repositioned every time | 31 // Sets the status bubble, which should be repositioned every time |
| 32 // this view changes visible bounds. | 32 // this view changes visible bounds. |
| 33 void SetStatusBubble(StatusBubbleViews* status_bubble); | 33 void SetStatusBubble(StatusBubbleViews* status_bubble); |
| 34 | 34 |
| 35 // WebView overrides: | 35 // WebView overrides: |
| 36 bool GetNeedsNotificationWhenVisibleBoundsChange() const override; | 36 bool GetNeedsNotificationWhenVisibleBoundsChange() const override; |
| 37 void OnVisibleBoundsChanged() override; | 37 void OnVisibleBoundsChanged() override; |
| 38 void ViewHierarchyChanged( | 38 void ViewHierarchyChanged( |
| 39 const ViewHierarchyChangedDetails& details) override; | 39 const ViewHierarchyChangedDetails& details) override; |
| 40 void OnThemeChanged() override; | 40 void OnThemeChanged() override; |
| 41 void RenderViewReady() override; |
| 41 | 42 |
| 42 // ui::LayerOwnerDelegate overrides: | 43 // ui::LayerOwnerDelegate overrides: |
| 43 void OnLayerRecreated(ui::Layer* old_layer, ui::Layer* new_layer) override; | 44 void OnLayerRecreated(ui::Layer* old_layer, ui::Layer* new_layer) override; |
| 44 | 45 |
| 45 // WebContentsCloseHandlerDelegate overrides: | 46 // WebContentsCloseHandlerDelegate overrides: |
| 46 void CloneWebContentsLayer() override; | 47 void CloneWebContentsLayer() override; |
| 47 void DestroyClonedLayer() override; | 48 void DestroyClonedLayer() override; |
| 48 | 49 |
| 49 private: | 50 private: |
| 50 StatusBubbleViews* status_bubble_; | 51 StatusBubbleViews* status_bubble_; |
| 51 | 52 |
| 52 std::unique_ptr<ui::LayerTreeOwner> cloned_layer_tree_; | 53 std::unique_ptr<ui::LayerTreeOwner> cloned_layer_tree_; |
| 53 | 54 |
| 54 DISALLOW_COPY_AND_ASSIGN(ContentsWebView); | 55 DISALLOW_COPY_AND_ASSIGN(ContentsWebView); |
| 55 }; | 56 }; |
| 56 | 57 |
| 57 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_CONTENTS_WEB_VIEW_H_ | 58 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_CONTENTS_WEB_VIEW_H_ |
| OLD | NEW |