Chromium Code Reviews| 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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 318 // Invoked when a user cancels a before unload dialog. | 318 // Invoked when a user cancels a before unload dialog. |
| 319 virtual void BeforeUnloadDialogCancelled() {} | 319 virtual void BeforeUnloadDialogCancelled() {} |
| 320 | 320 |
| 321 // Invoked when an accessibility event is received from the renderer. | 321 // Invoked when an accessibility event is received from the renderer. |
| 322 virtual void AccessibilityEventReceived( | 322 virtual void AccessibilityEventReceived( |
| 323 const std::vector<AXEventNotificationDetails>& details) {} | 323 const std::vector<AXEventNotificationDetails>& details) {} |
| 324 | 324 |
| 325 // Invoked when theme color is changed to |theme_color|. | 325 // Invoked when theme color is changed to |theme_color|. |
| 326 virtual void DidChangeThemeColor(SkColor theme_color) {} | 326 virtual void DidChangeThemeColor(SkColor theme_color) {} |
| 327 | 327 |
| 328 // Invoked when the gin bindings have run the main module on mojoized WebUI | |
| 329 // pages. | |
| 330 virtual void DidRunWebUIMojoMain() {} | |
|
jam
2014/07/25 21:29:58
this would have a RenderFrame argument if it's cal
| |
| 331 | |
| 328 // Invoked if an IPC message is coming from a specific RenderFrameHost. | 332 // Invoked if an IPC message is coming from a specific RenderFrameHost. |
| 329 virtual bool OnMessageReceived(const IPC::Message& message, | 333 virtual bool OnMessageReceived(const IPC::Message& message, |
| 330 RenderFrameHost* render_frame_host); | 334 RenderFrameHost* render_frame_host); |
| 331 | 335 |
| 332 // IPC::Listener implementation. | 336 // IPC::Listener implementation. |
| 333 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 337 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 334 | 338 |
| 335 // IPC::Sender implementation. | 339 // IPC::Sender implementation. |
| 336 virtual bool Send(IPC::Message* message) OVERRIDE; | 340 virtual bool Send(IPC::Message* message) OVERRIDE; |
| 337 int routing_id() const; | 341 int routing_id() const; |
| (...skipping 21 matching lines...) Expand all Loading... | |
| 359 void ResetWebContents(); | 363 void ResetWebContents(); |
| 360 | 364 |
| 361 WebContentsImpl* web_contents_; | 365 WebContentsImpl* web_contents_; |
| 362 | 366 |
| 363 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 367 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
| 364 }; | 368 }; |
| 365 | 369 |
| 366 } // namespace content | 370 } // namespace content |
| 367 | 371 |
| 368 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 372 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
| OLD | NEW |