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

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

Issue 7344: Convert GetPreferredSize from:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // Simple UI for the command-line V8 debugger consisting of a text field for 5 // Simple UI for the command-line V8 debugger consisting of a text field for
6 // entry and an output view consisting of (potentially wrapped) lines of text. 6 // entry and an output view consisting of (potentially wrapped) lines of text.
7 7
8 // TODO(erikkay): investigate replacing this with a DHTML interface 8 // TODO(erikkay): investigate replacing this with a DHTML interface
9 9
10 #ifndef CHROME_BROWSER_DEBUGGER_DEBUGGER_VIEW_H__ 10 #ifndef CHROME_BROWSER_DEBUGGER_DEBUGGER_VIEW_H__
(...skipping 29 matching lines...) Expand all
40 40
41 // Called when the debugger hits a breakpoint or continues. 41 // Called when the debugger hits a breakpoint or continues.
42 void SetDebuggerBreak(bool is_broken); 42 void SetDebuggerBreak(bool is_broken);
43 43
44 void SetOutputViewReady(); 44 void SetOutputViewReady();
45 45
46 // Overridden from ChromeViews::View: 46 // Overridden from ChromeViews::View:
47 virtual std::string GetClassName() const { 47 virtual std::string GetClassName() const {
48 return "DebuggerView"; 48 return "DebuggerView";
49 } 49 }
50 virtual void GetPreferredSize(CSize* out); 50 virtual gfx::Size GetPreferredSize();
51 virtual void Layout(); 51 virtual void Layout();
52 virtual void Paint(ChromeCanvas* canvas); 52 virtual void Paint(ChromeCanvas* canvas);
53 virtual void DidChangeBounds(const CRect& previous, const CRect& current); 53 virtual void DidChangeBounds(const CRect& previous, const CRect& current);
54 virtual void ViewHierarchyChanged(bool is_add, 54 virtual void ViewHierarchyChanged(bool is_add,
55 ChromeViews::View* parent, 55 ChromeViews::View* parent,
56 ChromeViews::View* child); 56 ChromeViews::View* child);
57 57
58 // Overridden from PageNavigator (TabContentsDelegate's base interface): 58 // Overridden from PageNavigator (TabContentsDelegate's base interface):
59 virtual void OpenURLFromTab(TabContents* source, 59 virtual void OpenURLFromTab(TabContents* source,
60 const GURL& url, 60 const GURL& url,
(...skipping 27 matching lines...) Expand all
88 WebContents* web_contents_; 88 WebContents* web_contents_;
89 TabContentsContainerView* web_container_; 89 TabContentsContainerView* web_container_;
90 std::vector<std::wstring> pending_output_; 90 std::vector<std::wstring> pending_output_;
91 bool output_ready_; 91 bool output_ready_;
92 92
93 DISALLOW_EVIL_CONSTRUCTORS(DebuggerView); 93 DISALLOW_EVIL_CONSTRUCTORS(DebuggerView);
94 }; 94 };
95 95
96 96
97 #endif // CHROME_BROWSER_DEBUGGER_DEBUGGER_VIEW_H__ 97 #endif // CHROME_BROWSER_DEBUGGER_DEBUGGER_VIEW_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698