Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1691)

Side by Side Diff: content/public/browser/web_contents_observer.h

Issue 331793005: Notify the change of brand color from renderer to Brower (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/frame_messages.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
11 #include "content/public/browser/navigation_controller.h" 11 #include "content/public/browser/navigation_controller.h"
12 #include "content/public/common/frame_navigate_params.h" 12 #include "content/public/common/frame_navigate_params.h"
13 #include "content/public/common/page_transition_types.h" 13 #include "content/public/common/page_transition_types.h"
14 #include "ipc/ipc_listener.h" 14 #include "ipc/ipc_listener.h"
15 #include "ipc/ipc_sender.h" 15 #include "ipc/ipc_sender.h"
16 #include "third_party/skia/include/core/SkColor.h"
16 #include "ui/base/window_open_disposition.h" 17 #include "ui/base/window_open_disposition.h"
17 18
18 namespace content { 19 namespace content {
19 20
20 class NavigationEntry; 21 class NavigationEntry;
21 class RenderFrameHost; 22 class RenderFrameHost;
22 class RenderViewHost; 23 class RenderViewHost;
23 class WebContents; 24 class WebContents;
24 class WebContentsImpl; 25 class WebContentsImpl;
25 struct AXEventNotificationDetails; 26 struct AXEventNotificationDetails;
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 // Invoked when the beforeunload handler fires. The time is from the renderer. 322 // Invoked when the beforeunload handler fires. The time is from the renderer.
322 virtual void BeforeUnloadFired(const base::TimeTicks& proceed_time) {} 323 virtual void BeforeUnloadFired(const base::TimeTicks& proceed_time) {}
323 324
324 // Invoked when a user cancels a before unload dialog. 325 // Invoked when a user cancels a before unload dialog.
325 virtual void BeforeUnloadDialogCancelled() {} 326 virtual void BeforeUnloadDialogCancelled() {}
326 327
327 // Invoked when an accessibility event is received from the renderer. 328 // Invoked when an accessibility event is received from the renderer.
328 virtual void AccessibilityEventReceived( 329 virtual void AccessibilityEventReceived(
329 const std::vector<AXEventNotificationDetails>& details) {} 330 const std::vector<AXEventNotificationDetails>& details) {}
330 331
332 // Invoked when brand color is changed to |brand_color|.
333 virtual void DidChangeBrandColor(SkColor 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
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_
OLDNEW
« no previous file with comments | « content/common/frame_messages.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698