OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "chrome/common/page_action.h" | 5 #include "chrome/common/page_action.h" |
6 | 6 |
| 7 #include "base/logging.h" |
| 8 #include "chrome/app/chrome_dll_resource.h" |
| 9 |
| 10 int ContextualAction::next_command_id_ = IDC_BROWSER_ACTION_FIRST; |
| 11 |
7 ContextualAction::ContextualAction() | 12 ContextualAction::ContextualAction() |
8 : type_(PAGE_ACTION) { | 13 : type_(PAGE_ACTION), command_id_(next_command_id_++) { |
| 14 DCHECK(command_id_ <= IDC_BROWSER_ACTION_LAST); |
9 } | 15 } |
10 | 16 |
11 ContextualAction::~ContextualAction() { | 17 ContextualAction::~ContextualAction() { |
12 } | 18 } |
OLD | NEW |