| 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());
|
| }
|
|
|