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

Unified Diff: views/window/window_delegate.cc

Issue 6622002: Do all OOLing in the views code. linux_views now builds clean with the clang plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 side-by-side diff with in-line comments
Download patch
Index: views/window/window_delegate.cc
diff --git a/views/window/window_delegate.cc b/views/window/window_delegate.cc
index 69bcc03575a957177a2fe72dc8ec66ef00b4b249..aa710ee455500bc47036d49d7ae14d4fb93c1f03 100644
--- a/views/window/window_delegate.cc
+++ b/views/window/window_delegate.cc
@@ -16,6 +16,50 @@ WindowDelegate::WindowDelegate() : window_(NULL) {
WindowDelegate::~WindowDelegate() {
}
+DialogDelegate* WindowDelegate::AsDialogDelegate() {
+ return NULL;
+}
+
+bool WindowDelegate::CanResize() const {
+ return false;
+}
+
+bool WindowDelegate::CanMaximize() const {
+ return false;
+}
+
+bool WindowDelegate::IsModal() const {
+ return false;
+}
+
+AccessibilityTypes::Role WindowDelegate::accessible_role() const {
+ return AccessibilityTypes::ROLE_WINDOW;
+}
+
+AccessibilityTypes::State WindowDelegate::accessible_state() const {
+ return 0;
+}
+
+std::wstring WindowDelegate::GetAccessibleWindowTitle() const {
+ return GetWindowTitle();
+}
+
+std::wstring WindowDelegate::GetWindowTitle() const {
+ return L"";
+}
+
+View* WindowDelegate::GetInitiallyFocusedView() {
+ return NULL;
+}
+
+bool WindowDelegate::ShouldShowWindowTitle() const {
+ return true;
+}
+
+bool WindowDelegate::ShouldShowClientEdge() const {
+ return true;
+}
+
SkBitmap WindowDelegate::GetWindowAppIcon() {
// Use the window icon as app icon by default.
return GetWindowIcon();
@@ -26,6 +70,18 @@ SkBitmap WindowDelegate::GetWindowIcon() {
return SkBitmap();
}
+bool WindowDelegate::ShouldShowWindowIcon() const {
+ return false;
+}
+
+bool WindowDelegate::ExecuteWindowsCommand(int command_id) {
+ return false;
+}
+
+std::wstring WindowDelegate::GetWindowName() const {
+ return std::wstring();
+}
+
void WindowDelegate::SaveWindowPlacement(const gfx::Rect& bounds,
bool maximized) {
std::wstring window_name = GetWindowName();
@@ -58,6 +114,10 @@ bool WindowDelegate::ShouldRestoreWindowSize() const {
return true;
}
+View* WindowDelegate::GetContentsView() {
+ return NULL;
+}
+
ClientView* WindowDelegate::CreateClientView(Window* window) {
return new ClientView(window, GetContentsView());
}

Powered by Google App Engine
This is Rietveld 408576698