| OLD | NEW |
| 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 Loading... |
| 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. |
| 253 virtual void ViewSourceForTab(TabContents* source); |
| 254 |
| 252 // Allows delegates to handle keyboard events before sending to the renderer. | 255 // Allows delegates to handle keyboard events before sending to the renderer. |
| 253 // Returns true if the |event| was handled. Otherwise, if the |event| would be | 256 // Returns true if the |event| was handled. Otherwise, if the |event| would be |
| 254 // handled in HandleKeyboardEvent() method as a normal keyboard shortcut, | 257 // handled in HandleKeyboardEvent() method as a normal keyboard shortcut, |
| 255 // |*is_keyboard_shortcut| should be set to true. | 258 // |*is_keyboard_shortcut| should be set to true. |
| 256 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | 259 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
| 257 bool* is_keyboard_shortcut); | 260 bool* is_keyboard_shortcut); |
| 258 | 261 |
| 259 // Allows delegates to handle unhandled keyboard messages coming back from | 262 // Allows delegates to handle unhandled keyboard messages coming back from |
| 260 // the renderer. | 263 // the renderer. |
| 261 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); | 264 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 | 322 |
| 320 // Notifies the delegate that the content restrictions for this tab has | 323 // Notifies the delegate that the content restrictions for this tab has |
| 321 // changed. | 324 // changed. |
| 322 virtual void ContentRestrictionsChanged(TabContents* source); | 325 virtual void ContentRestrictionsChanged(TabContents* source); |
| 323 | 326 |
| 324 protected: | 327 protected: |
| 325 virtual ~TabContentsDelegate(); | 328 virtual ~TabContentsDelegate(); |
| 326 }; | 329 }; |
| 327 | 330 |
| 328 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ | 331 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ |
| OLD | NEW |