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

Side by Side Diff: chrome/browser/tab_contents/tab_contents_delegate.h

Issue 5869002: Introduce default implementation for TabContentsDelegate::ViewSourceForTab. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Lint Created 10 years 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_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 242
243 // Shows the page info using the specified information. 243 // Shows the page info using the specified information.
244 // |url| is the url of the page/frame the info applies to, |ssl| is the SSL 244 // |url| is the url of the page/frame the info applies to, |ssl| is the SSL
245 // information for that page/frame. If |show_history| is true, a section 245 // information for that page/frame. If |show_history| is true, a section
246 // showing how many times that URL has been visited is added to the page info. 246 // showing how many times that URL has been visited is added to the page info.
247 virtual void ShowPageInfo(Profile* profile, 247 virtual void ShowPageInfo(Profile* profile,
248 const GURL& url, 248 const GURL& url,
249 const NavigationEntry::SSLStatus& ssl, 249 const NavigationEntry::SSLStatus& ssl,
250 bool show_history); 250 bool show_history);
251 251
252 // Opens source view for given tab contents. 252 // Opens source view for given tab contents that is navigated to the given
253 virtual void ViewSourceForTab(TabContents* source); 253 // page url.
254 virtual void ViewSourceForTab(TabContents* source, const GURL& page_url);
254 255
255 // Allows delegates to handle keyboard events before sending to the renderer. 256 // Allows delegates to handle keyboard events before sending to the renderer.
256 // Returns true if the |event| was handled. Otherwise, if the |event| would be 257 // Returns true if the |event| was handled. Otherwise, if the |event| would be
257 // handled in HandleKeyboardEvent() method as a normal keyboard shortcut, 258 // handled in HandleKeyboardEvent() method as a normal keyboard shortcut,
258 // |*is_keyboard_shortcut| should be set to true. 259 // |*is_keyboard_shortcut| should be set to true.
259 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, 260 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
260 bool* is_keyboard_shortcut); 261 bool* is_keyboard_shortcut);
261 262
262 // Allows delegates to handle unhandled keyboard messages coming back from 263 // Allows delegates to handle unhandled keyboard messages coming back from
263 // the renderer. 264 // the renderer.
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 323
323 // Notifies the delegate that the content restrictions for this tab has 324 // Notifies the delegate that the content restrictions for this tab has
324 // changed. 325 // changed.
325 virtual void ContentRestrictionsChanged(TabContents* source); 326 virtual void ContentRestrictionsChanged(TabContents* source);
326 327
327 protected: 328 protected:
328 virtual ~TabContentsDelegate(); 329 virtual ~TabContentsDelegate();
329 }; 330 };
330 331
331 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 332 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | chrome/browser/tab_contents/tab_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698