| 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_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 | 396 |
| 397 // Forward a message from external host to chrome renderer. | 397 // Forward a message from external host to chrome renderer. |
| 398 void ForwardMessageFromExternalHost(const std::string& message, | 398 void ForwardMessageFromExternalHost(const std::string& message, |
| 399 const std::string& origin, | 399 const std::string& origin, |
| 400 const std::string& target); | 400 const std::string& target); |
| 401 | 401 |
| 402 // Message the renderer that we should be counted as a new document and not | 402 // Message the renderer that we should be counted as a new document and not |
| 403 // as a popup. | 403 // as a popup. |
| 404 void DisassociateFromPopupCount(); | 404 void DisassociateFromPopupCount(); |
| 405 | 405 |
| 406 // Tells the renderer whether it should allow window.close. This is initially | |
| 407 // set to false when creating a renderer-initiated window via window.open. | |
| 408 void AllowScriptToClose(bool visible); | |
| 409 | |
| 410 // Notifies the Renderer that a move or resize of its containing window has | 406 // Notifies the Renderer that a move or resize of its containing window has |
| 411 // started (this is used to hide the autocomplete popups if any). | 407 // started (this is used to hide the autocomplete popups if any). |
| 412 void WindowMoveOrResizeStarted(); | 408 void WindowMoveOrResizeStarted(); |
| 413 | 409 |
| 414 // RenderWidgetHost public overrides. | 410 // RenderWidgetHost public overrides. |
| 415 virtual void Shutdown(); | 411 virtual void Shutdown(); |
| 416 virtual bool IsRenderView() const; | 412 virtual bool IsRenderView() const; |
| 417 virtual bool OnMessageReceived(const IPC::Message& msg); | 413 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 418 virtual void GotFocus(); | 414 virtual void GotFocus(); |
| 419 virtual void LostCapture(); | 415 virtual void LostCapture(); |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 692 // The enabled/disabled states of various commands. | 688 // The enabled/disabled states of various commands. |
| 693 std::map<RenderViewCommand, CommandState> command_states_; | 689 std::map<RenderViewCommand, CommandState> command_states_; |
| 694 | 690 |
| 695 // A list of observers that filter messages. Weak references. | 691 // A list of observers that filter messages. Weak references. |
| 696 ObserverList<RenderViewHostObserver> observers_; | 692 ObserverList<RenderViewHostObserver> observers_; |
| 697 | 693 |
| 698 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 694 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
| 699 }; | 695 }; |
| 700 | 696 |
| 701 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 697 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |