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

Side by Side Diff: chrome/browser/debugger/devtools_window.h

Issue 3156016: Making window.focus()/blur() work only when user initiated (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Fix Linux compile 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
« no previous file with comments | « chrome/browser/browser.cc ('k') | chrome/browser/dom_ui/html_dialog_tab_contents_delegate.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 (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_DEBUGGER_DEVTOOLS_WINDOW_H_ 5 #ifndef CHROME_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_
6 #define CHROME_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_ 6 #define CHROME_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 WindowOpenDisposition disposition, 75 WindowOpenDisposition disposition,
76 PageTransition::Type transition) {} 76 PageTransition::Type transition) {}
77 virtual void NavigationStateChanged(const TabContents* source, 77 virtual void NavigationStateChanged(const TabContents* source,
78 unsigned changed_flags) {} 78 unsigned changed_flags) {}
79 virtual void AddNewContents(TabContents* source, 79 virtual void AddNewContents(TabContents* source,
80 TabContents* new_contents, 80 TabContents* new_contents,
81 WindowOpenDisposition disposition, 81 WindowOpenDisposition disposition,
82 const gfx::Rect& initial_pos, 82 const gfx::Rect& initial_pos,
83 bool user_gesture) {} 83 bool user_gesture) {}
84 virtual void ActivateContents(TabContents* contents) {} 84 virtual void ActivateContents(TabContents* contents) {}
85 virtual void DeactivateContents(TabContents* contents) {}
85 virtual void LoadingStateChanged(TabContents* source) {} 86 virtual void LoadingStateChanged(TabContents* source) {}
86 virtual void CloseContents(TabContents* source) {} 87 virtual void CloseContents(TabContents* source) {}
87 virtual void MoveContents(TabContents* source, const gfx::Rect& pos) {} 88 virtual void MoveContents(TabContents* source, const gfx::Rect& pos) {}
88 virtual bool CanReloadContents(TabContents* source) const { return false; } 89 virtual bool CanReloadContents(TabContents* source) const { return false; }
89 virtual void URLStarredChanged(TabContents* source, bool starred) {} 90 virtual void URLStarredChanged(TabContents* source, bool starred) {}
90 virtual void UpdateTargetURL(TabContents* source, const GURL& url) {} 91 virtual void UpdateTargetURL(TabContents* source, const GURL& url) {}
91 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating) {} 92 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating) {}
92 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, 93 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
93 bool* is_keyboard_shortcut); 94 bool* is_keyboard_shortcut);
94 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); 95 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event);
95 96
96 Profile* profile_; 97 Profile* profile_;
97 TabContents* inspected_tab_; 98 TabContents* inspected_tab_;
98 TabContents* tab_contents_; 99 TabContents* tab_contents_;
99 Browser* browser_; 100 Browser* browser_;
100 bool docked_; 101 bool docked_;
101 bool is_loaded_; 102 bool is_loaded_;
102 DevToolsToggleAction action_on_load_; 103 DevToolsToggleAction action_on_load_;
103 NotificationRegistrar registrar_; 104 NotificationRegistrar registrar_;
104 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); 105 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow);
105 }; 106 };
106 107
107 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_ 108 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser.cc ('k') | chrome/browser/dom_ui/html_dialog_tab_contents_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698