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

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

Issue 3060045: Making window.focus() work in Chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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) 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 const SkBitmap& image, 145 const SkBitmap& image,
146 const gfx::Point& image_offset) = 0; 146 const gfx::Point& image_offset) = 0;
147 147
148 // The page wants to update the mouse cursor during a drag & drop operation. 148 // The page wants to update the mouse cursor during a drag & drop operation.
149 // |operation| describes the current operation (none, move, copy, link.) 149 // |operation| describes the current operation (none, move, copy, link.)
150 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) = 0; 150 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) = 0;
151 151
152 // Notification that view for this delegate got the focus. 152 // Notification that view for this delegate got the focus.
153 virtual void GotFocus() = 0; 153 virtual void GotFocus() = 0;
154 154
155 // Callback to inform the browser it should take back focus. If reverse is 155 // Callback to inform the browser that the page is returning the focus to
156 // true, it means the focus was retrieved by doing a Shift-Tab. 156 // the browser's chrome. If reverse is true, it means the focus was
157 // retrieved by doing a Shift-Tab.
157 virtual void TakeFocus(bool reverse) = 0; 158 virtual void TakeFocus(bool reverse) = 0;
158 159
160 // The page wants the hosting window to activate/deactivate itself (it
161 // called the JavaScript window.focus()/blur() method).
162 virtual void Activate() = 0;
163 virtual void Deactivate() = 0;
164
159 // Callback to give the browser a chance to handle the specified keyboard 165 // Callback to give the browser a chance to handle the specified keyboard
160 // event before sending it to the renderer. 166 // event before sending it to the renderer.
161 // Returns true if the |event| was handled. Otherwise, if the |event| would 167 // Returns true if the |event| was handled. Otherwise, if the |event| would
162 // be handled in HandleKeyboardEvent() method as a normal keyboard shortcut, 168 // be handled in HandleKeyboardEvent() method as a normal keyboard shortcut,
163 // |*is_keyboard_shortcut| should be set to true. 169 // |*is_keyboard_shortcut| should be set to true.
164 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, 170 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
165 bool* is_keyboard_shortcut) = 0; 171 bool* is_keyboard_shortcut) = 0;
166 172
167 // Callback to inform the browser that the renderer did not process the 173 // Callback to inform the browser that the renderer did not process the
168 // specified events. This gives an opportunity to the browser to process the 174 // specified events. This gives an opportunity to the browser to process the
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
799 virtual void FocusedNodeChanged() {} 805 virtual void FocusedNodeChanged() {}
800 806
801 // The content being displayed is a PDF. 807 // The content being displayed is a PDF.
802 virtual void SetDisplayingPDFContent() {} 808 virtual void SetDisplayingPDFContent() {}
803 809
804 protected: 810 protected:
805 virtual ~RenderViewHostDelegate() {} 811 virtual ~RenderViewHostDelegate() {}
806 }; 812 };
807 813
808 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 814 #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_widget_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698