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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 public WebContentsCloseHandlerDelegate { | 25 public WebContentsCloseHandlerDelegate { |
26 public: | 26 public: |
27 explicit ContentsWebView(content::BrowserContext* browser_context); | 27 explicit ContentsWebView(content::BrowserContext* browser_context); |
28 virtual ~ContentsWebView(); | 28 virtual ~ContentsWebView(); |
29 | 29 |
30 // Sets the status bubble, which should be repositioned every time | 30 // Sets the status bubble, which should be repositioned every time |
31 // this view changes visible bounds. | 31 // this view changes visible bounds. |
32 void SetStatusBubble(StatusBubbleViews* status_bubble); | 32 void SetStatusBubble(StatusBubbleViews* status_bubble); |
33 | 33 |
34 // WebView overrides: | 34 // WebView overrides: |
35 virtual bool GetNeedsNotificationWhenVisibleBoundsChange() const OVERRIDE; | 35 virtual bool GetNeedsNotificationWhenVisibleBoundsChange() const override; |
36 virtual void OnVisibleBoundsChanged() OVERRIDE; | 36 virtual void OnVisibleBoundsChanged() override; |
37 virtual void ViewHierarchyChanged(const ViewHierarchyChangedDetails& details) | 37 virtual void ViewHierarchyChanged(const ViewHierarchyChangedDetails& details) |
38 OVERRIDE; | 38 override; |
39 virtual void OnThemeChanged() OVERRIDE; | 39 virtual void OnThemeChanged() override; |
40 | 40 |
41 // ui::LayerOwnerDelegate overrides: | 41 // ui::LayerOwnerDelegate overrides: |
42 virtual void OnLayerRecreated(ui::Layer* old_layer, | 42 virtual void OnLayerRecreated(ui::Layer* old_layer, |
43 ui::Layer* new_layer) OVERRIDE; | 43 ui::Layer* new_layer) override; |
44 | 44 |
45 // WebContentsCloseHandlerDelegate overrides: | 45 // WebContentsCloseHandlerDelegate overrides: |
46 virtual void CloneWebContentsLayer() OVERRIDE; | 46 virtual void CloneWebContentsLayer() override; |
47 virtual void DestroyClonedLayer() OVERRIDE; | 47 virtual void DestroyClonedLayer() override; |
48 | 48 |
49 private: | 49 private: |
50 StatusBubbleViews* status_bubble_; | 50 StatusBubbleViews* status_bubble_; |
51 | 51 |
52 scoped_ptr<ui::LayerTreeOwner> cloned_layer_tree_; | 52 scoped_ptr<ui::LayerTreeOwner> cloned_layer_tree_; |
53 | 53 |
54 DISALLOW_COPY_AND_ASSIGN(ContentsWebView); | 54 DISALLOW_COPY_AND_ASSIGN(ContentsWebView); |
55 }; | 55 }; |
56 | 56 |
57 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_CONTENTS_WEB_VIEW_H_ | 57 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_CONTENTS_WEB_VIEW_H_ |
OLD | NEW |