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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 // Invoked when the beforeunload handler fires. The time is from the renderer. | 333 // Invoked when the beforeunload handler fires. The time is from the renderer. |
334 virtual void BeforeUnloadFired(const base::TimeTicks& proceed_time) {} | 334 virtual void BeforeUnloadFired(const base::TimeTicks& proceed_time) {} |
335 | 335 |
336 // Invoked when a user cancels a before unload dialog. | 336 // Invoked when a user cancels a before unload dialog. |
337 virtual void BeforeUnloadDialogCancelled() {} | 337 virtual void BeforeUnloadDialogCancelled() {} |
338 | 338 |
339 // Invoked when an accessibility event is received from the renderer. | 339 // Invoked when an accessibility event is received from the renderer. |
340 virtual void AccessibilityEventReceived( | 340 virtual void AccessibilityEventReceived( |
341 const std::vector<AXEventNotificationDetails>& details) {} | 341 const std::vector<AXEventNotificationDetails>& details) {} |
342 | 342 |
343 // Invoked when brand color is changed to |brand_color|. | 343 // Invoked when theme color is changed to |theme_color|. |
344 virtual void DidChangeBrandColor(SkColor brand_color) {} | 344 virtual void DidChangeThemeColor(SkColor theme_color) {} |
345 | 345 |
346 // Invoked if an IPC message is coming from a specific RenderFrameHost. | 346 // Invoked if an IPC message is coming from a specific RenderFrameHost. |
347 virtual bool OnMessageReceived(const IPC::Message& message, | 347 virtual bool OnMessageReceived(const IPC::Message& message, |
348 RenderFrameHost* render_frame_host); | 348 RenderFrameHost* render_frame_host); |
349 | 349 |
350 // IPC::Listener implementation. | 350 // IPC::Listener implementation. |
351 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 351 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
352 | 352 |
353 // IPC::Sender implementation. | 353 // IPC::Sender implementation. |
354 virtual bool Send(IPC::Message* message) OVERRIDE; | 354 virtual bool Send(IPC::Message* message) OVERRIDE; |
(...skipping 22 matching lines...) Expand all Loading... |
377 void ResetWebContents(); | 377 void ResetWebContents(); |
378 | 378 |
379 WebContentsImpl* web_contents_; | 379 WebContentsImpl* web_contents_; |
380 | 380 |
381 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 381 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
382 }; | 382 }; |
383 | 383 |
384 } // namespace content | 384 } // namespace content |
385 | 385 |
386 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 386 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
OLD | NEW |