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

Side by Side Diff: chrome/browser/ui/views/frame/contents_web_view.h

Issue 686463004: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 1 month 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 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"
11 #include "chrome/browser/ui/views/frame/web_contents_close_handler_delegate.h" 11 #include "chrome/browser/ui/views/frame/web_contents_close_handler_delegate.h"
12 #include "ui/compositor/layer_owner_delegate.h" 12 #include "ui/compositor/layer_owner_delegate.h"
13 #include "ui/views/controls/webview/webview.h" 13 #include "ui/views/controls/webview/webview.h"
14 14
15 class StatusBubbleViews; 15 class StatusBubbleViews;
16 16
17 namespace ui { 17 namespace ui {
18 class LayerTreeOwner; 18 class LayerTreeOwner;
19 } 19 }
20 20
21 // ContentsWebView is used to present the WebContents of the active tab. 21 // ContentsWebView is used to present the WebContents of the active tab.
22 class ContentsWebView 22 class ContentsWebView
23 : public views::WebView, 23 : public views::WebView,
24 public ui::LayerOwnerDelegate, 24 public ui::LayerOwnerDelegate,
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 ~ContentsWebView() override;
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 bool GetNeedsNotificationWhenVisibleBoundsChange() const override;
36 virtual void OnVisibleBoundsChanged() override; 36 void OnVisibleBoundsChanged() override;
37 virtual void ViewHierarchyChanged(const ViewHierarchyChangedDetails& details) 37 void ViewHierarchyChanged(
38 override; 38 const ViewHierarchyChangedDetails& details) override;
39 virtual void OnThemeChanged() override; 39 void OnThemeChanged() override;
40 40
41 // ui::LayerOwnerDelegate overrides: 41 // ui::LayerOwnerDelegate overrides:
42 virtual void OnLayerRecreated(ui::Layer* old_layer, 42 void OnLayerRecreated(ui::Layer* old_layer, ui::Layer* new_layer) override;
43 ui::Layer* new_layer) override;
44 43
45 // WebContentsCloseHandlerDelegate overrides: 44 // WebContentsCloseHandlerDelegate overrides:
46 virtual void CloneWebContentsLayer() override; 45 void CloneWebContentsLayer() override;
47 virtual void DestroyClonedLayer() override; 46 void DestroyClonedLayer() override;
48 47
49 private: 48 private:
50 StatusBubbleViews* status_bubble_; 49 StatusBubbleViews* status_bubble_;
51 50
52 scoped_ptr<ui::LayerTreeOwner> cloned_layer_tree_; 51 scoped_ptr<ui::LayerTreeOwner> cloned_layer_tree_;
53 52
54 DISALLOW_COPY_AND_ASSIGN(ContentsWebView); 53 DISALLOW_COPY_AND_ASSIGN(ContentsWebView);
55 }; 54 };
56 55
57 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_CONTENTS_WEB_VIEW_H_ 56 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_CONTENTS_WEB_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/contents_layout_manager.h ('k') | chrome/browser/ui/views/frame/desktop_browser_frame_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698