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 21 matching lines...) Expand all Loading... |
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 void RenderViewReady() override; |
| 42 void RenderFrameHostChanged(content::RenderFrameHost* old_host, |
| 43 content::RenderFrameHost* new_host) override; |
42 | 44 |
43 // ui::LayerOwnerDelegate overrides: | 45 // ui::LayerOwnerDelegate overrides: |
44 void OnLayerRecreated(ui::Layer* old_layer, ui::Layer* new_layer) override; | 46 void OnLayerRecreated(ui::Layer* old_layer, ui::Layer* new_layer) override; |
45 | 47 |
46 // WebContentsCloseHandlerDelegate overrides: | 48 // WebContentsCloseHandlerDelegate overrides: |
47 void CloneWebContentsLayer() override; | 49 void CloneWebContentsLayer() override; |
48 void DestroyClonedLayer() override; | 50 void DestroyClonedLayer() override; |
49 | 51 |
50 private: | 52 private: |
51 StatusBubbleViews* status_bubble_; | 53 StatusBubbleViews* status_bubble_; |
52 | 54 |
53 std::unique_ptr<ui::LayerTreeOwner> cloned_layer_tree_; | 55 std::unique_ptr<ui::LayerTreeOwner> cloned_layer_tree_; |
54 | 56 |
55 DISALLOW_COPY_AND_ASSIGN(ContentsWebView); | 57 DISALLOW_COPY_AND_ASSIGN(ContentsWebView); |
56 }; | 58 }; |
57 | 59 |
58 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_CONTENTS_WEB_VIEW_H_ | 60 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_CONTENTS_WEB_VIEW_H_ |
OLD | NEW |