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

Side by Side Diff: chrome/browser/ui/views/simple_message_box_views.h

Issue 10143001: Work in progress: Adds MessagePumpDispatcher::ShouldExit(). This is used to handle the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_UI_VIEWS_SIMPLE_MESSAGE_BOX_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_SIMPLE_MESSAGE_BOX_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_SIMPLE_MESSAGE_BOX_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_SIMPLE_MESSAGE_BOX_VIEWS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 SimpleMessageBoxViews(gfx::NativeWindow parent_window, 63 SimpleMessageBoxViews(gfx::NativeWindow parent_window,
64 DialogType dialog_type, 64 DialogType dialog_type,
65 const string16& title, 65 const string16& title,
66 const string16& message); 66 const string16& message);
67 virtual ~SimpleMessageBoxViews(); 67 virtual ~SimpleMessageBoxViews();
68 68
69 // MessageLoop::Dispatcher implementation. 69 // MessageLoop::Dispatcher implementation.
70 // Dispatcher method. This returns true if the menu was canceled, or 70 // Dispatcher method. This returns true if the menu was canceled, or
71 // if the message is such that the menu should be closed. 71 // if the message is such that the menu should be closed.
72 virtual bool Dispatch(const base::NativeEvent& event) OVERRIDE; 72 virtual bool Dispatch(const base::NativeEvent& event) OVERRIDE;
73 virtual bool ShouldExit() OVERRIDE;
73 74
74 const DialogType dialog_type_; 75 const DialogType dialog_type_;
75 DispositionType disposition_; 76 DispositionType disposition_;
76 const string16 window_title_; 77 const string16 window_title_;
77 views::MessageBoxView* message_box_view_; 78 views::MessageBoxView* message_box_view_;
78 79
79 DISALLOW_COPY_AND_ASSIGN(SimpleMessageBoxViews); 80 DISALLOW_COPY_AND_ASSIGN(SimpleMessageBoxViews);
80 }; 81 };
81 82
82 #endif // CHROME_BROWSER_UI_VIEWS_SIMPLE_MESSAGE_BOX_VIEWS_H_ 83 #endif // CHROME_BROWSER_UI_VIEWS_SIMPLE_MESSAGE_BOX_VIEWS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc ('k') | chrome/browser/ui/views/simple_message_box_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698