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

Side by Side Diff: chrome/browser/ui/browser_window.h

Issue 2775553002: Adds the ability for WebContentsDelegate to decide if event should be updated (Closed)
Patch Set: Fix compile Created 3 years, 9 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 | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/cocoa/browser_window_cocoa.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_WINDOW_H_
6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "chrome/browser/lifetime/browser_close_manager.h" 10 #include "chrome/browser/lifetime/browser_close_manager.h"
(...skipping 24 matching lines...) Expand all
35 struct WebApplicationInfo; 35 struct WebApplicationInfo;
36 36
37 namespace autofill { 37 namespace autofill {
38 class SaveCardBubbleController; 38 class SaveCardBubbleController;
39 class SaveCardBubbleView; 39 class SaveCardBubbleView;
40 } 40 }
41 41
42 namespace content { 42 namespace content {
43 class WebContents; 43 class WebContents;
44 struct NativeWebKeyboardEvent; 44 struct NativeWebKeyboardEvent;
45 enum class KeyboardEventProcessingResult;
45 } 46 }
46 47
47 namespace extensions { 48 namespace extensions {
48 class Command; 49 class Command;
49 class Extension; 50 class Extension;
50 } 51 }
51 52
52 namespace gfx { 53 namespace gfx {
53 class Rect; 54 class Rect;
54 class Size; 55 class Size;
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 Profile* profile, 302 Profile* profile,
302 content::WebContents* web_contents, 303 content::WebContents* web_contents,
303 const GURL& virtual_url, 304 const GURL& virtual_url,
304 const security_state::SecurityInfo& security_info) = 0; 305 const security_state::SecurityInfo& security_info) = 0;
305 306
306 // Shows the app menu (for accessibility). 307 // Shows the app menu (for accessibility).
307 virtual void ShowAppMenu() = 0; 308 virtual void ShowAppMenu() = 0;
308 309
309 // Allows the BrowserWindow object to handle the specified keyboard event 310 // Allows the BrowserWindow object to handle the specified keyboard event
310 // before sending it to the renderer. 311 // before sending it to the renderer.
311 // Returns true if the |event| was handled. Otherwise, if the |event| would 312 virtual content::KeyboardEventProcessingResult PreHandleKeyboardEvent(
312 // be handled in HandleKeyboardEvent() method as a normal keyboard shortcut, 313 const content::NativeWebKeyboardEvent& event) = 0;
313 // |*is_keyboard_shortcut| should be set to true.
314 virtual bool PreHandleKeyboardEvent(
315 const content::NativeWebKeyboardEvent& event,
316 bool* is_keyboard_shortcut) = 0;
317 314
318 // Allows the BrowserWindow object to handle the specified keyboard event, 315 // Allows the BrowserWindow object to handle the specified keyboard event,
319 // if the renderer did not process it. 316 // if the renderer did not process it.
320 virtual void HandleKeyboardEvent( 317 virtual void HandleKeyboardEvent(
321 const content::NativeWebKeyboardEvent& event) = 0; 318 const content::NativeWebKeyboardEvent& event) = 0;
322 319
323 // Clipboard commands applied to the whole browser window. 320 // Clipboard commands applied to the whole browser window.
324 virtual void CutCopyPaste(int command_id) = 0; 321 virtual void CutCopyPaste(int command_id) = 0;
325 322
326 // Return the correct disposition for a popup window based on |bounds|. 323 // Return the correct disposition for a popup window based on |bounds|.
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 virtual std::string GetWorkspace() const = 0; 379 virtual std::string GetWorkspace() const = 0;
383 virtual bool IsVisibleOnAllWorkspaces() const = 0; 380 virtual bool IsVisibleOnAllWorkspaces() const = 0;
384 381
385 protected: 382 protected:
386 friend class BrowserCloseManager; 383 friend class BrowserCloseManager;
387 friend class BrowserView; 384 friend class BrowserView;
388 virtual void DestroyBrowser() = 0; 385 virtual void DestroyBrowser() = 0;
389 }; 386 };
390 387
391 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 388 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/cocoa/browser_window_cocoa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698