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

Side by Side Diff: chrome/browser/ui/views/extensions/extension_view_views.h

Issue 628773002: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[t-v]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_EXTENSIONS_EXTENSION_VIEW_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_VIEW_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_VIEW_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_VIEW_VIEWS_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 "chrome/browser/extensions/extension_view.h" 10 #include "chrome/browser/extensions/extension_view.h"
(...skipping 19 matching lines...) Expand all
30 public: 30 public:
31 virtual ~Container() {} 31 virtual ~Container() {}
32 32
33 virtual void OnExtensionSizeChanged(ExtensionViewViews* view) {} 33 virtual void OnExtensionSizeChanged(ExtensionViewViews* view) {}
34 }; 34 };
35 35
36 ExtensionViewViews(extensions::ExtensionHost* host, Browser* browser); 36 ExtensionViewViews(extensions::ExtensionHost* host, Browser* browser);
37 virtual ~ExtensionViewViews(); 37 virtual ~ExtensionViewViews();
38 38
39 // views::NativeViewHost: 39 // views::NativeViewHost:
40 virtual gfx::Size GetMinimumSize() const OVERRIDE; 40 virtual gfx::Size GetMinimumSize() const override;
41 virtual void SetVisible(bool is_visible) OVERRIDE; 41 virtual void SetVisible(bool is_visible) override;
42 virtual gfx::NativeCursor GetCursor(const ui::MouseEvent& event) OVERRIDE; 42 virtual gfx::NativeCursor GetCursor(const ui::MouseEvent& event) override;
43 virtual void ViewHierarchyChanged( 43 virtual void ViewHierarchyChanged(
44 const ViewHierarchyChangedDetails& details) OVERRIDE; 44 const ViewHierarchyChangedDetails& details) override;
45 45
46 extensions::ExtensionHost* host() const { return host_; } 46 extensions::ExtensionHost* host() const { return host_; }
47 const extensions::Extension* extension() const { return host_->extension(); } 47 const extensions::Extension* extension() const { return host_->extension(); }
48 content::RenderViewHost* render_view_host() const { 48 content::RenderViewHost* render_view_host() const {
49 return host_->render_view_host(); 49 return host_->render_view_host();
50 } 50 }
51 void set_minimum_size(const gfx::Size& minimum_size) { 51 void set_minimum_size(const gfx::Size& minimum_size) {
52 minimum_size_ = minimum_size; 52 minimum_size_ = minimum_size;
53 } 53 }
54 void set_container(Container* container) { container_ = container; } 54 void set_container(Container* container) { container_ = container; }
55 55
56 void SetIsClipped(bool is_clipped); 56 void SetIsClipped(bool is_clipped);
57 57
58 // extensions::ExtensionView: 58 // extensions::ExtensionView:
59 virtual void Init() OVERRIDE; 59 virtual void Init() override;
60 virtual Browser* GetBrowser() OVERRIDE; 60 virtual Browser* GetBrowser() override;
61 virtual gfx::NativeView GetNativeView() OVERRIDE; 61 virtual gfx::NativeView GetNativeView() override;
62 virtual void ResizeDueToAutoResize(const gfx::Size& new_size) OVERRIDE; 62 virtual void ResizeDueToAutoResize(const gfx::Size& new_size) override;
63 virtual void RenderViewCreated() OVERRIDE; 63 virtual void RenderViewCreated() override;
64 virtual void HandleKeyboardEvent( 64 virtual void HandleKeyboardEvent(
65 content::WebContents* source, 65 content::WebContents* source,
66 const content::NativeWebKeyboardEvent& event) OVERRIDE; 66 const content::NativeWebKeyboardEvent& event) override;
67 virtual void DidStopLoading() OVERRIDE; 67 virtual void DidStopLoading() override;
68 68
69 private: 69 private:
70 friend class extensions::ExtensionHost; 70 friend class extensions::ExtensionHost;
71 71
72 // views::NativeViewHost: 72 // views::NativeViewHost:
73 virtual bool SkipDefaultKeyEventProcessing(const ui::KeyEvent& e) OVERRIDE; 73 virtual bool SkipDefaultKeyEventProcessing(const ui::KeyEvent& e) override;
74 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE; 74 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) override;
75 virtual void PreferredSizeChanged() OVERRIDE; 75 virtual void PreferredSizeChanged() override;
76 virtual void OnFocus() OVERRIDE; 76 virtual void OnFocus() override;
77 77
78 // Initializes the RenderWidgetHostView for this object. 78 // Initializes the RenderWidgetHostView for this object.
79 void CreateWidgetHostView(); 79 void CreateWidgetHostView();
80 80
81 // We wait to show the ExtensionViewViews until several things have loaded. 81 // We wait to show the ExtensionViewViews until several things have loaded.
82 void ShowIfCompletelyLoaded(); 82 void ShowIfCompletelyLoaded();
83 83
84 // Restore object to initial state. Called on shutdown or after a renderer 84 // Restore object to initial state. Called on shutdown or after a renderer
85 // crash. 85 // crash.
86 void CleanUp(); 86 void CleanUp();
(...skipping 21 matching lines...) Expand all
108 bool is_clipped_; 108 bool is_clipped_;
109 109
110 // A handler to handle unhandled keyboard messages coming back from the 110 // A handler to handle unhandled keyboard messages coming back from the
111 // renderer process. 111 // renderer process.
112 views::UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; 112 views::UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_;
113 113
114 DISALLOW_COPY_AND_ASSIGN(ExtensionViewViews); 114 DISALLOW_COPY_AND_ASSIGN(ExtensionViewViews);
115 }; 115 };
116 116
117 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_VIEW_VIEWS_H_ 117 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_VIEW_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698