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

Side by Side Diff: chrome/common/temp_scaffolding_stubs.h

Issue 593037: Remove the temporary scaffolding stubs. (Closed)
Patch Set: fixes Created 10 years, 10 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/chrome_common.gypi ('k') | chrome/common/temp_scaffolding_stubs.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_
6 #define CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_
7
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
10 // be removed from here as they are fleshed out more completely.
11
12 #include <string>
13
14 #include "base/basictypes.h"
15 #include "base/logging.h"
16 #include "base/ref_counted.h"
17 #include "build/build_config.h"
18 #include "chrome/browser/renderer_host/render_view_host_delegate.h"
19
20 class CancelableTask;
21 class TabContents;
22 struct ViewHostMsg_DidPrintPage_Params;
23
24 namespace gfx {
25 class Rect;
26 }
27
28 //---------------------------------------------------------------------------
29 // These stubs are for BrowserProcessImpl
30
31 #if !defined(OS_MACOSX)
32 class ViewMsg_Print_Params;
33
34 // Printing is only partially implemented.
35 // http://code.google.com/p/chromium/issues/detail?id=9847
36 namespace printing {
37
38 class PrintViewManager : public RenderViewHostDelegate::Printing {
39 public:
40 explicit PrintViewManager(TabContents& owner) : owner_(owner) { }
41 void Stop() { NOTIMPLEMENTED(); }
42 void Destroy() { }
43 bool OnRenderViewGone(RenderViewHost*) {
44 return true; // Assume for now that all renderer crashes are important.
45 }
46
47 // RenderViewHostDelegate::Printing implementation.
48 virtual void DidGetPrintedPagesCount(int cookie, int number_pages) {
49 NOTIMPLEMENTED();
50 }
51
52 virtual void DidPrintPage(const ViewHostMsg_DidPrintPage_Params& params) {
53 NOTIMPLEMENTED();
54 }
55
56 private:
57 TabContents& owner_;
58 };
59
60 class PrintingContext {
61 public:
62 enum Result { OK, CANCEL, FAILED };
63 };
64
65 class PrintSettings {
66 public:
67 void RenderParams(ViewMsg_Print_Params* params) const { NOTIMPLEMENTED(); }
68 int dpi() const { NOTIMPLEMENTED(); return 92; }
69 };
70
71 class PrinterQuery : public base::RefCountedThreadSafe<PrinterQuery> {
72 public:
73 enum GetSettingsAskParam {
74 DEFAULTS,
75 ASK_USER,
76 };
77
78 void GetSettings(GetSettingsAskParam ask_user_for_settings,
79 int parent_window,
80 int expected_page_count,
81 bool has_selection,
82 CancelableTask* callback) { NOTIMPLEMENTED(); }
83 PrintingContext::Result last_status() { return PrintingContext::FAILED; }
84 const PrintSettings& settings() { NOTIMPLEMENTED(); return settings_; }
85 int cookie() { NOTIMPLEMENTED(); return 0; }
86 void StopWorker() { NOTIMPLEMENTED(); }
87
88 private:
89 friend class base::RefCountedThreadSafe<PrinterQuery>;
90
91 ~PrinterQuery() {}
92
93 PrintSettings settings_;
94 };
95
96 class PrintJobManager {
97 public:
98 void OnQuit() { }
99 void PopPrinterQuery(int document_cookie, scoped_refptr<PrinterQuery>* job) {
100 NOTIMPLEMENTED();
101 }
102 void QueuePrinterQuery(PrinterQuery* job) { NOTIMPLEMENTED(); }
103 };
104
105 } // namespace printing
106 #endif // !OS_MACOSX
107
108 //---------------------------------------------------------------------------
109 // These stubs are for Browser
110
111 #if defined(OS_MACOSX)
112 class DockInfo {
113 public:
114 bool GetNewWindowBounds(gfx::Rect*, bool*) const;
115 void AdjustOtherWindowBounds() const;
116 };
117 #endif
118
119 #endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_
OLDNEW
« no previous file with comments | « chrome/chrome_common.gypi ('k') | chrome/common/temp_scaffolding_stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698