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

Side by Side Diff: chrome/views/controls/message_box_view.h

Issue 93112: Make messages in javascript's alert copyable.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « chrome/browser/views/jsmessage_box_dialog.cc ('k') | chrome/views/controls/message_box_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_VIEWS_CONTROLS_MESSAGE_BOX_VIEW_VIEW_H_ 5 #ifndef CHROME_VIEWS_CONTROLS_MESSAGE_BOX_VIEW_VIEW_H_
6 #define CHROME_VIEWS_CONTROLS_MESSAGE_BOX_VIEW_VIEW_H_ 6 #define CHROME_VIEWS_CONTROLS_MESSAGE_BOX_VIEW_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/task.h" 10 #include "base/task.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 // Sets the state of the check-box. 53 // Sets the state of the check-box.
54 void SetCheckBoxSelected(bool selected); 54 void SetCheckBoxSelected(bool selected);
55 55
56 protected: 56 protected:
57 // Layout and Painting functions. 57 // Layout and Painting functions.
58 virtual void ViewHierarchyChanged(bool is_add, 58 virtual void ViewHierarchyChanged(bool is_add,
59 views::View* parent, 59 views::View* parent,
60 views::View* child); 60 views::View* child);
61 61
62 // Handles Ctrl-C and writes the message in the system clipboard.
63 virtual bool AcceleratorPressed(const views::Accelerator& accelerator);
64
62 private: 65 private:
63 // Sets up the layout manager and initializes the prompt field. This should 66 // Sets up the layout manager and initializes the prompt field. This should
64 // only be called once, from the constructor. 67 // only be called once, from the constructor.
65 void Init(int dialog_flags, const std::wstring& default_prompt); 68 void Init(int dialog_flags, const std::wstring& default_prompt);
66 69
67 // Sets up the layout manager based on currently initialized views. Should be 70 // Sets up the layout manager based on currently initialized views. Should be
68 // called when a view is initialized or changed. 71 // called when a view is initialized or changed.
69 void ResetLayoutManager(); 72 void ResetLayoutManager();
70 73
71 // Message for the message box. 74 // Message for the message box.
(...skipping 10 matching lines...) Expand all
82 85
83 // Maximum width of the message label. 86 // Maximum width of the message label.
84 int message_width_; 87 int message_width_;
85 88
86 ScopedRunnableMethodFactory<MessageBoxView> focus_grabber_factory_; 89 ScopedRunnableMethodFactory<MessageBoxView> focus_grabber_factory_;
87 90
88 DISALLOW_EVIL_CONSTRUCTORS(MessageBoxView); 91 DISALLOW_EVIL_CONSTRUCTORS(MessageBoxView);
89 }; 92 };
90 93
91 #endif // CHROME_VIEWS_CONTROLS_MESSAGE_BOX_VIEW_VIEW_H_ 94 #endif // CHROME_VIEWS_CONTROLS_MESSAGE_BOX_VIEW_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/views/jsmessage_box_dialog.cc ('k') | chrome/views/controls/message_box_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698