| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 | 184 |
| 185 // --------------------------------------------------------------------------- | 185 // --------------------------------------------------------------------------- |
| 186 | 186 |
| 187 // Returns the current delegate associated with a feature. May return NULL if | 187 // Returns the current delegate associated with a feature. May return NULL if |
| 188 // there is no corresponding delegate. | 188 // there is no corresponding delegate. |
| 189 virtual View* GetViewDelegate(); | 189 virtual View* GetViewDelegate(); |
| 190 virtual RendererManagement* GetRendererManagementDelegate(); | 190 virtual RendererManagement* GetRendererManagementDelegate(); |
| 191 | 191 |
| 192 // IPC::Channel::Listener implementation. | 192 // IPC::Channel::Listener implementation. |
| 193 // This is used to give the delegate a chance to filter IPC messages. | 193 // This is used to give the delegate a chance to filter IPC messages. |
| 194 virtual bool OnMessageReceived(const IPC::Message& message); | 194 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 195 | 195 |
| 196 // Gets the URL that is currently being displayed, if there is one. | 196 // Gets the URL that is currently being displayed, if there is one. |
| 197 virtual const GURL& GetURL() const; | 197 virtual const GURL& GetURL() const; |
| 198 | 198 |
| 199 // Return this object cast to a TabContents, if it is one. If the object is | 199 // Return this object cast to a TabContents, if it is one. If the object is |
| 200 // not a TabContents, returns NULL. DEPRECATED: Be sure to include brettw and | 200 // not a TabContents, returns NULL. DEPRECATED: Be sure to include brettw and |
| 201 // jam as reviewers before you use this method. http://crbug.com/82582 | 201 // jam as reviewers before you use this method. http://crbug.com/82582 |
| 202 virtual TabContents* GetAsTabContents(); | 202 virtual TabContents* GetAsTabContents(); |
| 203 | 203 |
| 204 // Return type of RenderView which is attached with this object. | 204 // Return type of RenderView which is attached with this object. |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 virtual void RequestToLockMouse() {} | 387 virtual void RequestToLockMouse() {} |
| 388 | 388 |
| 389 // Notification that the view has lost the mouse lock. | 389 // Notification that the view has lost the mouse lock. |
| 390 virtual void LostMouseLock() {} | 390 virtual void LostMouseLock() {} |
| 391 | 391 |
| 392 protected: | 392 protected: |
| 393 virtual ~RenderViewHostDelegate() {} | 393 virtual ~RenderViewHostDelegate() {} |
| 394 }; | 394 }; |
| 395 | 395 |
| 396 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 396 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |