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

Side by Side Diff: chrome/browser/renderer_host/render_view_host_delegate.h

Issue 2812056: Relanding http://codereview.chromium.org/2870050/show. (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: rebased Created 10 years, 5 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 667
668 // Notification from the renderer host that blocked UI event occurred. 668 // Notification from the renderer host that blocked UI event occurred.
669 // This happens when there are tab-modal dialogs. In this case, the 669 // This happens when there are tab-modal dialogs. In this case, the
670 // notification is needed to let us draw attention to the dialog (i.e. 670 // notification is needed to let us draw attention to the dialog (i.e.
671 // refocus on the modal dialog, flash title etc). 671 // refocus on the modal dialog, flash title etc).
672 virtual void OnIgnoredUIEvent() {} 672 virtual void OnIgnoredUIEvent() {}
673 673
674 // Notification from the renderer that JS runs out of memory. 674 // Notification from the renderer that JS runs out of memory.
675 virtual void OnJSOutOfMemory() {} 675 virtual void OnJSOutOfMemory() {}
676 676
677 // Returns true if this this object can be blurred through a javascript
678 // obj.blur() call. ConstrainedWindows shouldn't be able to be blurred, but
679 // generally most other windows will be.
680 virtual bool CanBlur() const;
681
682 // Return the rect where to display the resize corner, if any, otherwise 677 // Return the rect where to display the resize corner, if any, otherwise
683 // an empty rect. 678 // an empty rect.
684 virtual gfx::Rect GetRootWindowResizerRect() const; 679 virtual gfx::Rect GetRootWindowResizerRect() const;
685 680
686 // Notification that the renderer has become unresponsive. The 681 // Notification that the renderer has become unresponsive. The
687 // delegate can use this notification to show a warning to the user. 682 // delegate can use this notification to show a warning to the user.
688 virtual void RendererUnresponsive(RenderViewHost* render_view_host, 683 virtual void RendererUnresponsive(RenderViewHost* render_view_host,
689 bool is_during_unload) {} 684 bool is_during_unload) {}
690 685
691 // Notification that a previously unresponsive renderer has become 686 // Notification that a previously unresponsive renderer has become
692 // responsive again. The delegate can use this notification to end the 687 // responsive again. The delegate can use this notification to end the
693 // warning shown to the user. 688 // warning shown to the user.
694 virtual void RendererResponsive(RenderViewHost* render_view_host) {} 689 virtual void RendererResponsive(RenderViewHost* render_view_host) {}
695 690
696 // Notification that the RenderViewHost's load state changed. 691 // Notification that the RenderViewHost's load state changed.
697 virtual void LoadStateChanged(const GURL& url, net::LoadState load_state, 692 virtual void LoadStateChanged(const GURL& url, net::LoadState load_state,
698 uint64 upload_position, uint64 upload_size) {} 693 uint64 upload_position, uint64 upload_size) {}
699 694
700 // Returns true if this view is used to host an external tab container. 695 // Returns true if this view is used to host an external tab container.
701 virtual bool IsExternalTabContainer() const; 696 virtual bool IsExternalTabContainer() const;
702 697
703 // The RenderView has inserted one css file into page. 698 // The RenderView has inserted one css file into page.
704 virtual void DidInsertCSS() {} 699 virtual void DidInsertCSS() {}
705 700
706 // A different node in the page got focused. 701 // A different node in the page got focused.
707 virtual void FocusedNodeChanged() {} 702 virtual void FocusedNodeChanged() {}
708 }; 703 };
709 704
710 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 705 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.cc ('k') | chrome/browser/renderer_host/render_view_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698