| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 // to it (the TabContents does not). | 108 // to it (the TabContents does not). |
| 109 // | 109 // |
| 110 // It should be noted that the RenderViewHost, not the RenderWidgetHost, | 110 // It should be noted that the RenderViewHost, not the RenderWidgetHost, |
| 111 // handles IPC messages relating to the render process going away, since the | 111 // handles IPC messages relating to the render process going away, since the |
| 112 // way a RenderViewHost (TabContents) handles the process dying is different to | 112 // way a RenderViewHost (TabContents) handles the process dying is different to |
| 113 // the way a select popup does. As such the RenderWidgetHostView handles these | 113 // the way a select popup does. As such the RenderWidgetHostView handles these |
| 114 // messages for select popups. This placement is more out of convenience than | 114 // messages for select popups. This placement is more out of convenience than |
| 115 // anything else. When the view is live, these messages are forwarded to it by | 115 // anything else. When the view is live, these messages are forwarded to it by |
| 116 // the RenderWidgetHost's IPC message map. | 116 // the RenderWidgetHost's IPC message map. |
| 117 // | 117 // |
| 118 class RenderWidgetHost : public IPC::Channel::Listener { | 118 class RenderWidgetHost : public IPC::Channel::Listener, |
| 119 public IPC::Channel::Sender { |
| 119 public: | 120 public: |
| 120 // An interface that gets called whenever a paint occurs. | 121 // An interface that gets called whenever a paint occurs. |
| 121 // Used in performance tests. | 122 // Used in performance tests. |
| 122 class PaintObserver { | 123 class PaintObserver { |
| 123 public: | 124 public: |
| 124 virtual ~PaintObserver() {} | 125 virtual ~PaintObserver() {} |
| 125 virtual void RenderWidgetHostDidPaint(RenderWidgetHost* rwh) = 0; | 126 virtual void RenderWidgetHostDidPaint(RenderWidgetHost* rwh) = 0; |
| 126 }; | 127 }; |
| 127 | 128 |
| 128 // routing_id can be MSG_ROUTING_NONE, in which case the next available | 129 // routing_id can be MSG_ROUTING_NONE, in which case the next available |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 | 512 |
| 512 // Set when we cancel updating the text direction. | 513 // Set when we cancel updating the text direction. |
| 513 // This flag also ignores succeeding update requests until we call | 514 // This flag also ignores succeeding update requests until we call |
| 514 // NotifyTextDirection(). | 515 // NotifyTextDirection(). |
| 515 bool text_direction_canceled_; | 516 bool text_direction_canceled_; |
| 516 | 517 |
| 517 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); | 518 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); |
| 518 }; | 519 }; |
| 519 | 520 |
| 520 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 521 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
| OLD | NEW |