OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_COMMON_TEMP_SCAFFOLDING_STUBS_H_ | 5 #ifndef CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ |
6 #define CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ | 6 #define CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ |
7 | 7 |
8 // This file provides declarations and stub definitions for classes we encouter | 8 // This file provides declarations and stub definitions for classes we encouter |
9 // during the porting effort. It is not meant to be permanent, and classes will | 9 // during the porting effort. It is not meant to be permanent, and classes will |
10 // be removed from here as they are fleshed out more completely. | 10 // be removed from here as they are fleshed out more completely. |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 }; | 174 }; |
175 | 175 |
176 namespace browser { | 176 namespace browser { |
177 void RegisterAllPrefs(PrefService*, PrefService*); | 177 void RegisterAllPrefs(PrefService*, PrefService*); |
178 } | 178 } |
179 | 179 |
180 void OpenFirstRunDialog(Profile* profile); | 180 void OpenFirstRunDialog(Profile* profile); |
181 | 181 |
182 void InstallJankometer(const CommandLine&); | 182 void InstallJankometer(const CommandLine&); |
183 | 183 |
184 GURL NewTabUIURL(); | |
185 | |
186 //--------------------------------------------------------------------------- | 184 //--------------------------------------------------------------------------- |
187 // These stubs are for BrowserProcessImpl | 185 // These stubs are for BrowserProcessImpl |
188 | 186 |
189 class ClipboardService : public Clipboard { | 187 class ClipboardService : public Clipboard { |
190 public: | 188 public: |
191 }; | 189 }; |
192 | 190 |
193 class CancelableTask; | 191 class CancelableTask; |
194 class ViewMsg_Print_Params; | 192 class ViewMsg_Print_Params; |
195 | 193 |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 | 396 |
399 class TabContents : public PageNavigator, public NotificationObserver { | 397 class TabContents : public PageNavigator, public NotificationObserver { |
400 public: | 398 public: |
401 enum InvalidateTypes { | 399 enum InvalidateTypes { |
402 INVALIDATE_URL = 1, | 400 INVALIDATE_URL = 1, |
403 INVALIDATE_TITLE = 2, | 401 INVALIDATE_TITLE = 2, |
404 INVALIDATE_FAVICON = 4, | 402 INVALIDATE_FAVICON = 4, |
405 INVALIDATE_LOAD = 8, | 403 INVALIDATE_LOAD = 8, |
406 INVALIDATE_EVERYTHING = 0xFFFFFFFF | 404 INVALIDATE_EVERYTHING = 0xFFFFFFFF |
407 }; | 405 }; |
408 TabContents(TabContentsType type) | 406 TabContents(TabContentsType type) |
409 : type_(type), is_active_(true), is_loading_(false), | 407 : type_(type), is_active_(true), is_loading_(false), |
410 is_being_destroyed_(false), controller_(), | 408 is_being_destroyed_(false), controller_(), |
411 delegate_(), max_page_id_(-1) { } | 409 delegate_(), max_page_id_(-1) { } |
412 virtual ~TabContents() { } | 410 virtual ~TabContents() { } |
413 NavigationController* controller() const { return controller_; } | 411 NavigationController* controller() const { return controller_; } |
414 void set_controller(NavigationController* c) { controller_ = c; } | 412 void set_controller(NavigationController* c) { controller_ = c; } |
415 virtual WebContents* AsWebContents() { return NULL; } | 413 virtual WebContents* AsWebContents() { return NULL; } |
416 WebContents* AsWebContents() const { | 414 WebContents* AsWebContents() const { |
417 return const_cast<TabContents*>(this)->AsWebContents(); | 415 return const_cast<TabContents*>(this)->AsWebContents(); |
418 } | 416 } |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
767 } | 765 } |
768 }; | 766 }; |
769 | 767 |
770 class OSExchangeData { | 768 class OSExchangeData { |
771 public: | 769 public: |
772 void SetString(const std::wstring& data) { NOTIMPLEMENTED(); } | 770 void SetString(const std::wstring& data) { NOTIMPLEMENTED(); } |
773 void SetURL(const GURL& url, const std::wstring& title) { NOTIMPLEMENTED(); } | 771 void SetURL(const GURL& url, const std::wstring& title) { NOTIMPLEMENTED(); } |
774 }; | 772 }; |
775 | 773 |
776 #endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ | 774 #endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ |
OLD | NEW |