| OLD | NEW |
| 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 CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "base/process/kill.h" | 8 #include "base/process/kill.h" |
| 9 #include "base/process/process_handle.h" | 9 #include "base/process/process_handle.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 // Invoked when the beforeunload handler fires. The time is from the renderer. | 321 // Invoked when the beforeunload handler fires. The time is from the renderer. |
| 322 virtual void BeforeUnloadFired(const base::TimeTicks& proceed_time) {} | 322 virtual void BeforeUnloadFired(const base::TimeTicks& proceed_time) {} |
| 323 | 323 |
| 324 // Invoked when a user cancels a before unload dialog. | 324 // Invoked when a user cancels a before unload dialog. |
| 325 virtual void BeforeUnloadDialogCancelled() {} | 325 virtual void BeforeUnloadDialogCancelled() {} |
| 326 | 326 |
| 327 // Invoked when an accessibility event is received from the renderer. | 327 // Invoked when an accessibility event is received from the renderer. |
| 328 virtual void AccessibilityEventReceived( | 328 virtual void AccessibilityEventReceived( |
| 329 const std::vector<AXEventNotificationDetails>& details) {} | 329 const std::vector<AXEventNotificationDetails>& details) {} |
| 330 | 330 |
| 331 // Invoked when brand color changed, |brand_color| is the new color with RGBA |
| 332 // format. |
| 333 virtual void DidChangeBrandColor(uint32 brand_color) {} |
| 334 |
| 331 // Invoked if an IPC message is coming from a specific RenderFrameHost. | 335 // Invoked if an IPC message is coming from a specific RenderFrameHost. |
| 332 virtual bool OnMessageReceived(const IPC::Message& message, | 336 virtual bool OnMessageReceived(const IPC::Message& message, |
| 333 RenderFrameHost* render_frame_host); | 337 RenderFrameHost* render_frame_host); |
| 334 | 338 |
| 335 // IPC::Listener implementation. | 339 // IPC::Listener implementation. |
| 336 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 340 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 337 | 341 |
| 338 // IPC::Sender implementation. | 342 // IPC::Sender implementation. |
| 339 virtual bool Send(IPC::Message* message) OVERRIDE; | 343 virtual bool Send(IPC::Message* message) OVERRIDE; |
| 340 int routing_id() const; | 344 int routing_id() const; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 362 void ResetWebContents(); | 366 void ResetWebContents(); |
| 363 | 367 |
| 364 WebContentsImpl* web_contents_; | 368 WebContentsImpl* web_contents_; |
| 365 | 369 |
| 366 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 370 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
| 367 }; | 371 }; |
| 368 | 372 |
| 369 } // namespace content | 373 } // namespace content |
| 370 | 374 |
| 371 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 375 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
| OLD | NEW |