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

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

Issue 224733018: Changes to content/ to facilitate new zoom extension API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments. Created 6 years, 8 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 | Annotate | Revision Log
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 "content/public/common/page_zoom.h"
14 #include "ipc/ipc_listener.h" 15 #include "ipc/ipc_listener.h"
15 #include "ipc/ipc_sender.h" 16 #include "ipc/ipc_sender.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;
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 // Invoked when the renderer has toggled the tab into/out of fullscreen mode. 313 // Invoked when the renderer has toggled the tab into/out of fullscreen mode.
313 virtual void DidToggleFullscreenModeForTab(bool entered_fullscreen) {} 314 virtual void DidToggleFullscreenModeForTab(bool entered_fullscreen) {}
314 315
315 // Invoked when visible SSL state (as defined by SSLStatus) changes. 316 // Invoked when visible SSL state (as defined by SSLStatus) changes.
316 virtual void DidChangeVisibleSSLState() {} 317 virtual void DidChangeVisibleSSLState() {}
317 318
318 // Invoked when an interstitial page is attached or detached. 319 // Invoked when an interstitial page is attached or detached.
319 virtual void DidAttachInterstitialPage() {} 320 virtual void DidAttachInterstitialPage() {}
320 virtual void DidDetachInterstitialPage() {} 321 virtual void DidDetachInterstitialPage() {}
321 322
323 // Invoked when a zoom change is initiated from WebContents::SetZoomLevel().
324 virtual void DidSetZoomLevel(int old_zoom_level,
325 int new_zoom_level,
326 ZoomMode zoom_mode) {}
jam 2014/04/10 21:45:45 see http://www.chromium.org/developers/content-mod
327
322 // Invoked before a form repost warning is shown. 328 // Invoked before a form repost warning is shown.
323 virtual void BeforeFormRepostWarningShow() {} 329 virtual void BeforeFormRepostWarningShow() {}
324 330
325 // Invoked when the beforeunload handler fires. The time is from the renderer. 331 // Invoked when the beforeunload handler fires. The time is from the renderer.
326 virtual void BeforeUnloadFired(const base::TimeTicks& proceed_time) {} 332 virtual void BeforeUnloadFired(const base::TimeTicks& proceed_time) {}
327 333
328 // Invoked when a user cancels a before unload dialog. 334 // Invoked when a user cancels a before unload dialog.
329 virtual void BeforeUnloadDialogCancelled() {} 335 virtual void BeforeUnloadDialogCancelled() {}
330 336
331 // Invoked when an accessibility event is received from the renderer. 337 // Invoked when an accessibility event is received from the renderer.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 void WebContentsImplDestroyed(); 370 void WebContentsImplDestroyed();
365 371
366 WebContentsImpl* web_contents_; 372 WebContentsImpl* web_contents_;
367 373
368 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); 374 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver);
369 }; 375 };
370 376
371 } // namespace content 377 } // namespace content
372 378
373 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 379 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698