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

Side by Side Diff: content/renderer/browser_plugin/browser_plugin.h

Issue 633303002: Replace FINAL and OVERRIDE with their C++11 counterparts in content/renderer (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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
7 7
8 #include "third_party/WebKit/public/web/WebPlugin.h" 8 #include "third_party/WebKit/public/web/WebPlugin.h"
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 void Attach(); 70 void Attach();
71 71
72 // Notify the plugin about a compositor commit so that frame ACKs could be 72 // Notify the plugin about a compositor commit so that frame ACKs could be
73 // sent, if needed. 73 // sent, if needed.
74 void DidCommitCompositorFrame(); 74 void DidCommitCompositorFrame();
75 75
76 // Returns whether a message should be forwarded to BrowserPlugin. 76 // Returns whether a message should be forwarded to BrowserPlugin.
77 static bool ShouldForwardToBrowserPlugin(const IPC::Message& message); 77 static bool ShouldForwardToBrowserPlugin(const IPC::Message& message);
78 78
79 // blink::WebPlugin implementation. 79 // blink::WebPlugin implementation.
80 virtual blink::WebPluginContainer* container() const OVERRIDE; 80 virtual blink::WebPluginContainer* container() const override;
81 virtual bool initialize(blink::WebPluginContainer* container) OVERRIDE; 81 virtual bool initialize(blink::WebPluginContainer* container) override;
82 virtual void destroy() OVERRIDE; 82 virtual void destroy() override;
83 virtual bool supportsKeyboardFocus() const OVERRIDE; 83 virtual bool supportsKeyboardFocus() const override;
84 virtual bool supportsEditCommands() const OVERRIDE; 84 virtual bool supportsEditCommands() const override;
85 virtual bool supportsInputMethod() const OVERRIDE; 85 virtual bool supportsInputMethod() const override;
86 virtual bool canProcessDrag() const OVERRIDE; 86 virtual bool canProcessDrag() const override;
87 virtual void paint( 87 virtual void paint(
88 blink::WebCanvas* canvas, 88 blink::WebCanvas* canvas,
89 const blink::WebRect& rect) OVERRIDE; 89 const blink::WebRect& rect) override;
90 virtual void updateGeometry( 90 virtual void updateGeometry(
91 const blink::WebRect& frame_rect, 91 const blink::WebRect& frame_rect,
92 const blink::WebRect& clip_rect, 92 const blink::WebRect& clip_rect,
93 const blink::WebVector<blink::WebRect>& cut_outs_rects, 93 const blink::WebVector<blink::WebRect>& cut_outs_rects,
94 bool is_visible) OVERRIDE; 94 bool is_visible) override;
95 virtual void updateFocus(bool focused) OVERRIDE; 95 virtual void updateFocus(bool focused) override;
96 virtual void updateVisibility(bool visible) OVERRIDE; 96 virtual void updateVisibility(bool visible) override;
97 virtual bool acceptsInputEvents() OVERRIDE; 97 virtual bool acceptsInputEvents() override;
98 virtual bool handleInputEvent( 98 virtual bool handleInputEvent(
99 const blink::WebInputEvent& event, 99 const blink::WebInputEvent& event,
100 blink::WebCursorInfo& cursor_info) OVERRIDE; 100 blink::WebCursorInfo& cursor_info) override;
101 virtual bool handleDragStatusUpdate(blink::WebDragStatus drag_status, 101 virtual bool handleDragStatusUpdate(blink::WebDragStatus drag_status,
102 const blink::WebDragData& drag_data, 102 const blink::WebDragData& drag_data,
103 blink::WebDragOperationsMask mask, 103 blink::WebDragOperationsMask mask,
104 const blink::WebPoint& position, 104 const blink::WebPoint& position,
105 const blink::WebPoint& screen) OVERRIDE; 105 const blink::WebPoint& screen) override;
106 virtual void didReceiveResponse( 106 virtual void didReceiveResponse(
107 const blink::WebURLResponse& response) OVERRIDE; 107 const blink::WebURLResponse& response) override;
108 virtual void didReceiveData(const char* data, int data_length) OVERRIDE; 108 virtual void didReceiveData(const char* data, int data_length) override;
109 virtual void didFinishLoading() OVERRIDE; 109 virtual void didFinishLoading() override;
110 virtual void didFailLoading(const blink::WebURLError& error) OVERRIDE; 110 virtual void didFailLoading(const blink::WebURLError& error) override;
111 virtual void didFinishLoadingFrameRequest( 111 virtual void didFinishLoadingFrameRequest(
112 const blink::WebURL& url, 112 const blink::WebURL& url,
113 void* notify_data) OVERRIDE; 113 void* notify_data) override;
114 virtual void didFailLoadingFrameRequest( 114 virtual void didFailLoadingFrameRequest(
115 const blink::WebURL& url, 115 const blink::WebURL& url,
116 void* notify_data, 116 void* notify_data,
117 const blink::WebURLError& error) OVERRIDE; 117 const blink::WebURLError& error) override;
118 virtual bool executeEditCommand(const blink::WebString& name) OVERRIDE; 118 virtual bool executeEditCommand(const blink::WebString& name) override;
119 virtual bool executeEditCommand(const blink::WebString& name, 119 virtual bool executeEditCommand(const blink::WebString& name,
120 const blink::WebString& value) OVERRIDE; 120 const blink::WebString& value) override;
121 virtual bool setComposition( 121 virtual bool setComposition(
122 const blink::WebString& text, 122 const blink::WebString& text,
123 const blink::WebVector<blink::WebCompositionUnderline>& underlines, 123 const blink::WebVector<blink::WebCompositionUnderline>& underlines,
124 int selectionStart, 124 int selectionStart,
125 int selectionEnd) OVERRIDE; 125 int selectionEnd) override;
126 virtual bool confirmComposition( 126 virtual bool confirmComposition(
127 const blink::WebString& text, 127 const blink::WebString& text,
128 blink::WebWidget::ConfirmCompositionBehavior selectionBehavior) OVERRIDE; 128 blink::WebWidget::ConfirmCompositionBehavior selectionBehavior) override;
129 virtual void extendSelectionAndDelete(int before, int after) OVERRIDE; 129 virtual void extendSelectionAndDelete(int before, int after) override;
130 130
131 // MouseLockDispatcher::LockTarget implementation. 131 // MouseLockDispatcher::LockTarget implementation.
132 virtual void OnLockMouseACK(bool succeeded) OVERRIDE; 132 virtual void OnLockMouseACK(bool succeeded) override;
133 virtual void OnMouseLockLost() OVERRIDE; 133 virtual void OnMouseLockLost() override;
134 virtual bool HandleMouseLockedInputEvent( 134 virtual bool HandleMouseLockedInputEvent(
135 const blink::WebMouseEvent& event) OVERRIDE; 135 const blink::WebMouseEvent& event) override;
136 136
137 private: 137 private:
138 friend class base::DeleteHelper<BrowserPlugin>; 138 friend class base::DeleteHelper<BrowserPlugin>;
139 // Only the manager is allowed to create a BrowserPlugin. 139 // Only the manager is allowed to create a BrowserPlugin.
140 friend class BrowserPluginManager; 140 friend class BrowserPluginManager;
141 141
142 // For unit/integration tests. 142 // For unit/integration tests.
143 friend class MockBrowserPlugin; 143 friend class MockBrowserPlugin;
144 144
145 // A BrowserPlugin object is a controller that represents an instance of a 145 // A BrowserPlugin object is a controller that represents an instance of a
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might 231 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might
232 // get called after BrowserPlugin has been destroyed. 232 // get called after BrowserPlugin has been destroyed.
233 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; 233 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_;
234 234
235 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); 235 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin);
236 }; 236 };
237 237
238 } // namespace content 238 } // namespace content
239 239
240 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 240 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
OLDNEW
« no previous file with comments | « content/renderer/bmp_image_decoder_unittest.cc ('k') | content/renderer/browser_plugin/browser_plugin_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698