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

Side by Side Diff: content/browser/tab_contents/tab_contents_view.h

Issue 7537030: Make panel adjust bounds per preferred size change notification on Windows. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // first time. 91 // first time.
92 virtual void SetInitialFocus() = 0; 92 virtual void SetInitialFocus() = 0;
93 93
94 // Stores the currently focused view. 94 // Stores the currently focused view.
95 virtual void StoreFocus() = 0; 95 virtual void StoreFocus() = 0;
96 96
97 // Restores focus to the last focus view. If StoreFocus has not yet been 97 // Restores focus to the last focus view. If StoreFocus has not yet been
98 // invoked, SetInitialFocus is invoked. 98 // invoked, SetInitialFocus is invoked.
99 virtual void RestoreFocus() = 0; 99 virtual void RestoreFocus() = 0;
100 100
101 // Notification that the preferred size of the contents has changed.
102 virtual void UpdatePreferredSize(const gfx::Size& pref_size) = 0;
103
104 // If we try to close the tab while a drag is in progress, we crash. These 101 // If we try to close the tab while a drag is in progress, we crash. These
105 // methods allow the tab contents to determine if a drag is in progress and 102 // methods allow the tab contents to determine if a drag is in progress and
106 // postpone the tab closing. 103 // postpone the tab closing.
107 virtual bool IsDoingDrag() const = 0; 104 virtual bool IsDoingDrag() const = 0;
108 virtual void CancelDragAndCloseTab() = 0; 105 virtual void CancelDragAndCloseTab() = 0;
109 106
110 // If we close the tab while a UI control is in an event-tracking 107 // If we close the tab while a UI control is in an event-tracking
111 // loop, the control may message freed objects and crash. 108 // loop, the control may message freed objects and crash.
112 // TabContents::Close() calls IsEventTracking(), and if it returns 109 // TabContents::Close() calls IsEventTracking(), and if it returns
113 // true CloseTabAfterEventTracking() is called and the close is not 110 // true CloseTabAfterEventTracking() is called and the close is not
114 // completed. 111 // completed.
115 virtual bool IsEventTracking() const = 0; 112 virtual bool IsEventTracking() const = 0;
116 virtual void CloseTabAfterEventTracking() = 0; 113 virtual void CloseTabAfterEventTracking() = 0;
117 114
118 // Get the bounds of the View, relative to the parent. 115 // Get the bounds of the View, relative to the parent.
119 // TODO(beng): Return a rect rather than using an out param. 116 // TODO(beng): Return a rect rather than using an out param.
120 virtual void GetViewBounds(gfx::Rect* out) const = 0; 117 virtual void GetViewBounds(gfx::Rect* out) const = 0;
121 118
122 protected: 119 protected:
123 TabContentsView(); // Abstract interface. 120 TabContentsView(); // Abstract interface.
124 121
125 private: 122 private:
126 DISALLOW_COPY_AND_ASSIGN(TabContentsView); 123 DISALLOW_COPY_AND_ASSIGN(TabContentsView);
127 }; 124 };
128 125
129 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_ 126 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_
OLDNEW
« no previous file with comments | « content/browser/tab_contents/tab_contents_delegate.cc ('k') | content/test/test_tab_contents_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698