OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 30 matching lines...) Expand all Loading... |
41 | 41 |
42 BackForwardController::~BackForwardController() | 42 BackForwardController::~BackForwardController() |
43 { | 43 { |
44 } | 44 } |
45 | 45 |
46 PassOwnPtr<BackForwardController> BackForwardController::create(Page* page, Back
ForwardClient* client) | 46 PassOwnPtr<BackForwardController> BackForwardController::create(Page* page, Back
ForwardClient* client) |
47 { | 47 { |
48 return adoptPtr(new BackForwardController(page, client)); | 48 return adoptPtr(new BackForwardController(page, client)); |
49 } | 49 } |
50 | 50 |
51 bool BackForwardController::canGoBackOrForward(int distance) const | |
52 { | |
53 return m_page->canGoBackOrForward(distance); | |
54 } | |
55 | |
56 void BackForwardController::goBackOrForward(int distance) | 51 void BackForwardController::goBackOrForward(int distance) |
57 { | 52 { |
58 m_page->goBackOrForward(distance); | 53 m_page->goBackOrForward(distance); |
59 } | 54 } |
60 | 55 |
61 bool BackForwardController::goBack() | 56 bool BackForwardController::goBack() |
62 { | 57 { |
63 return m_page->goBack(); | 58 return m_page->goBack(); |
64 } | 59 } |
65 | 60 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 { | 97 { |
103 return m_client->isActive(); | 98 return m_client->isActive(); |
104 } | 99 } |
105 | 100 |
106 void BackForwardController::close() | 101 void BackForwardController::close() |
107 { | 102 { |
108 m_client->close(); | 103 m_client->close(); |
109 } | 104 } |
110 | 105 |
111 } // namespace WebCore | 106 } // namespace WebCore |
OLD | NEW |