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

Side by Side Diff: chrome/browser/ui/browser.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
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 CHROME_BROWSER_UI_BROWSER_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_H_
6 #define CHROME_BROWSER_UI_BROWSER_H_ 6 #define CHROME_BROWSER_UI_BROWSER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 int index) override; 471 int index) override;
472 void TabPinnedStateChanged(TabStripModel* tab_strip_model, 472 void TabPinnedStateChanged(TabStripModel* tab_strip_model,
473 content::WebContents* contents, 473 content::WebContents* contents,
474 int index) override; 474 int index) override;
475 void TabStripEmpty() override; 475 void TabStripEmpty() override;
476 476
477 // Overridden from content::WebContentsDelegate: 477 // Overridden from content::WebContentsDelegate:
478 bool CanOverscrollContent() const override; 478 bool CanOverscrollContent() const override;
479 bool ShouldPreserveAbortedURLs(content::WebContents* source) override; 479 bool ShouldPreserveAbortedURLs(content::WebContents* source) override;
480 void SetFocusToLocationBar(bool select_all) override; 480 void SetFocusToLocationBar(bool select_all) override;
481 bool PreHandleKeyboardEvent(content::WebContents* source, 481 content::KeyboardEventProcessingResult PreHandleKeyboardEvent(
482 const content::NativeWebKeyboardEvent& event, 482 content::WebContents* source,
483 bool* is_keyboard_shortcut) override; 483 const content::NativeWebKeyboardEvent& event) override;
484 void HandleKeyboardEvent( 484 void HandleKeyboardEvent(
485 content::WebContents* source, 485 content::WebContents* source,
486 const content::NativeWebKeyboardEvent& event) override; 486 const content::NativeWebKeyboardEvent& event) override;
487 void ShowValidationMessage(content::WebContents* web_contents, 487 void ShowValidationMessage(content::WebContents* web_contents,
488 const gfx::Rect& anchor_in_root_view, 488 const gfx::Rect& anchor_in_root_view,
489 const base::string16& main_text, 489 const base::string16& main_text,
490 const base::string16& sub_text) override; 490 const base::string16& sub_text) override;
491 void HideValidationMessage(content::WebContents* web_contents) override; 491 void HideValidationMessage(content::WebContents* web_contents) override;
492 void MoveValidationMessage(content::WebContents* web_contents, 492 void MoveValidationMessage(content::WebContents* web_contents,
493 const gfx::Rect& anchor_in_root_view) override; 493 const gfx::Rect& anchor_in_root_view) override;
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
1021 // The following factory is used for chrome update coalescing. 1021 // The following factory is used for chrome update coalescing.
1022 base::WeakPtrFactory<Browser> chrome_updater_factory_; 1022 base::WeakPtrFactory<Browser> chrome_updater_factory_;
1023 1023
1024 // The following factory is used to close the frame at a later time. 1024 // The following factory is used to close the frame at a later time.
1025 base::WeakPtrFactory<Browser> weak_factory_; 1025 base::WeakPtrFactory<Browser> weak_factory_;
1026 1026
1027 DISALLOW_COPY_AND_ASSIGN(Browser); 1027 DISALLOW_COPY_AND_ASSIGN(Browser);
1028 }; 1028 };
1029 1029
1030 #endif // CHROME_BROWSER_UI_BROWSER_H_ 1030 #endif // CHROME_BROWSER_UI_BROWSER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/global_shortcut_listener_chromeos.h ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698